doc: Merged old docs for Hash#get.

This commit is contained in:
tjcrowder 2009-09-10 14:57:10 +01:00
parent 00ebde59a2
commit e02a1cf5c6
1 changed files with 7 additions and 1 deletions

View File

@ -101,7 +101,13 @@ var Hash = Class.create(Enumerable, (function() {
/**
* Hash#get(key) -> value
*
* Returns the value of the hash's `key` property.
* Returns the stored value for the given `key`.
*
* ### Examples
*
* var h = new Hash({a: 'apple', b: 'banana', c: 'coconut'});
* h.get('a');
* // -> 'apple'
**/
function get(key) {
// simulating poorly supported hasOwnProperty