|
|
|
|
|
by Zef
5958 days ago
|
|
Alright. So now I want to iterate over all original keys, how do I do that (i.e. their original values, not the stringified version)? Plus, a random object (that doesn't have a meaningful toString method) will probably result in something like "[object]" as a key, which would break when you use more objects like that as keys. |
|
One good use case for objects as keys in hashes is functions. When you use a function as a key it is reliably converted to its definition, cross-browser. Doesn't make your point any less valid though.