Courses / JavaScript
36. Object.prototype.values()
Returning an array of a given object's own enumerable property values.
JavaScript
Object.prototype.values()
Object.values() returns an array of the values of an object's own properties.
"I need to easily access all the values from an object without writing a loop."
Object.values() is a method that retrieves an array containing the values of all enumerable properties of an object. This simplifies the process of accessing property values without manual iteration.
"I need to easily access all the values from an object without writing a loop."
Object.values() is a method that retrieves an array containing the values of all enumerable properties of an object. This simplifies the process of accessing property values without manual iteration.