Object.prototype.values

ES5

Part of ES5, now widely available.

Returns an array of values from the object

const car = { color: 'red', engineSize: 1.2 };
Object.values(car); // ['red', 1.2]

results matching ""

    No results matching ""