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