values

Object.values(obj) -> Array

Treats any object as a Hash and fetches the list of its property values.

Note that the order of the resulting Array is browser-dependent (it relies on the for…in loop), and is therefore not guaranteed to follow either declaration or lexicographical order. Also, remember that while property names are unique, property values have no constraint whatsoever.

Examples


Object.values()
// -> []

Object.values({ name: 'Prototype', version: 1.5 }).sort()
// -> [1.5, 'Prototype']