values() -> Array

Collect the values of a hash and returns them in an array.

The order of values is browser implementation-dependent (based on the forin loop on keys), so—although most of the time you will see it as consistent—it’s better not to rely on a specific order. Also remember that the hash may contain values such as null or even undefined.


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

// -> []