inspect() -> String

Returns the debug-oriented string representation of the hash.

For more information on inspect methods, see Object.inspect.


$H({ name: 'Prototype', version: 1.5 }).inspect()
// -> "<#Hash:{name: 'Prototype', version: 1.5}>"

Hashes and ordering

Don’t compare Hash instances by their string representation returned by this method. Although rarely the case, a consistent order of key-value pairs is not guaranteed in JavaScript.