JavaScript: Object.values
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 ]
New in JS2017.
Object.values(obj)
const obj = {"a":3, "b":4}; console.log( Object.values(obj) ); // [ 3, 4 ]