remove
deprecated

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

Removes keys from a hash and returns their values. Not available since v1.6.0.

This method is not available since Prototype 1.6.0. Use Hash#unset() for removing a value from a Hash instance. For removing multiple values, use a loop:

['foo', 'bar'].each(function(key) {
  hash.unset(key);
});

Examples


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

h.remove('a', 'c')
// -> ['apple', 'coconut']
h.values()
// -> ['banana']