jscl
jscl copied to clipboard
Use Maps to implement hash tables
trafficstars
Hash tables are implemented by tagging objects with unique Ids (for eq-comparison).
A better approach would be to use a combination of Javascript object (for primitive data types) and WeakMap for every other value.