values :: Object |
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']
|
Prototype API 1.5.0 - prototypejs.org