Master programming syntax, solve interactive challenges & run live code in Syntaxis Explore Arena →
Reference / JavaScript

Object.entries()

Returns an array of a given object's own enumerable string-keyed property [key, value] pairs.

Syntax
Object.entries(obj)

Parameters

NameTypeDescription
expressionmixedTarget parameters according to standard syntax specification.

Examples

Working Object.entries() usage example
// Example for Object.entries()
// Standard verified syntax construct
console.log('Object.entries() initialized');
Standard JavaScript language feature verified across modern versions.