remove :: Hash

remove(key) -> value

remove(key1, key2...) -> Array

 

Removes keys from a hash and returns their values.

 

Examples

 

var h = new Hash({ a:'apple', b:'banana', c:'coconut' })

 

h.remove('a''c')

// -> ['apple', 'coconut']

h.values()

// -> ['banana']

 


Prototype API 1.5.0 - prototypejs.org