Object.values()
ES2017+Returns an array of a given object's own enumerable property values.
Syntax
Object.values(obj)Parameters
obj Object The object whose enumerable own property values are to be returned
Return Value
Array
An array containing the object's own enumerable property values
Examples
JavaScript
const obj = { a: 1, b: 2, c: 3 };
console.log(Object.values(obj)); Output:
// [1, 2, 3]