Javatpoint Logo
Javatpoint Logo

JavaScript Object.values() Method

The Object.values() returns an array which contains the given object's own enumerable property values, in the same order as that provided by a loop.



obj: It is the object whose enumerable own property values are to be returned.

Return value:

This method returns an array of a given object's own enumerable property value.

Browser Support:

Chrome 54
Edge 14
Firefox 47
Opera 41

Example 1


["Rahul", 0, false]

Example 2


 ["string", 34, true] 
["string", 34, true]

Example 3


[1, 2, 3]

Next TopicJavaScript Objects

Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials

B.Tech / MCA