JavaScript: Object.values

By Xah Lee. Date: . Last updated: .

New in JS2017.

Object.values( obj )
Return a array that are obj's property values that are string key and own and enumerable.

[see List Properties]

const obj = {"a":3, "b":4};

console.log( Object.values(obj) );
// [ 3, 4 ]
JS in Depth
XAH  BUY NOW

JS in Depth

JS Obj Ref

DOM


JS Obj Ref

Object Object

prototype