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 jj = { "a": 3, "b": 4 };
console.log(Object.values(jj));
// [ 3, 4 ]
BUY ΣJS JavaScript in Depth

List Object Properties (to Array)