JavaScript Object values() method
returns an array with the values of an object

Object.values() static method returns an array with the values of an object.

syntax

Object.values(obj)

obj An object.

Object.values() method returns an array of strings representing the given object's own enumerable string-keyed property values.

This is the same as iterating with a for...in loop, except that a for...in loop enumerates properties in the prototype chain as well.

If you need the property keys, use Object.keys() instead.

If you need both the property values and keys, use Object.entries() instead.

The order of the array returned is the same as that provided by a for...in loop.

const myObject = { 'a': 3, 'b': 6, 'c': 9 };

Object.values(myObject);

returns [3, 6, 9]

syntax description
return an array with the values of an object
Object.values(myObject)