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.
const obj = {"a":3, "b":4};

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

JS Obj Reference

Object Object

prototype