keys :: Hash |
Note: the order of key names is browser-dependent (based on the for…in loop). Also, this currently skips any property whose value is a function (such as hash methods).
Examples
$H({ name: 'Prototype', version: 1.5 }).keys().sort() // -> ['name', 'version']
$H().keys() // -> []
|
Prototype API 1.5.0 - prototypejs.org