Object.entries

Object.entries

Object.entries

Function

Returns an array of object entries, each entry being [key, value].

Syntax

Parameters

No parameters.

Return value

TypeDescription
ArrayReturns an array of entries.

Example

Notes

  • The order of entries is consistent with the order in which objects are inserted.
  • entries do not modify the original object.