instance method Hash#merge
Hash#merge(object) → Hash
Returns a new Hash
instance with object
's key/value pairs merged in;
this hash remains unchanged.
To modify the original hash in place, use Hash#update
.
Example
var h = $H({one: "uno", two: "due"});
var h2 = h.merge({three: "tre"});
h.keys();
// -> ["one", "two"] (unchanged)
h2.keys();
// -> ["one", "two", "three"] (has merged contents)