Object.values

suggest change

The Object.values() method returns an array of a given object’s own enumerable property values, in the same order as that provided by a for…in loop (the difference being that a for-in loop enumerates properties in the prototype chain as well).

var obj = { 0: 'a', 1: 'b', 2: 'c' };
console.log(Object.values(obj)); // ['a', 'b', 'c']

Note:

For browser support, please refer to this link

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents