JavaScript: Object.entries

By Xah Lee. Date: . Last updated: .

New in JS2017.

Object.entries( obj )
Return a array of [key, value] pairs that are obj's string property keys that are own and enumerable.

[see List Properties]

console.log( Object.entries({a:3, b:4}) );
// [ [ "a", 3 ], [ "b", 4 ] ]
JS in Depth
XAH  BUY NOW

JS in Depth

JS Obj Ref

DOM


JS Obj Ref

Object Object

prototype