jscl icon indicating copy to clipboard operation
jscl copied to clipboard

Use Maps to implement hash tables

Open davazp opened this issue 9 years ago • 0 comments
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.

davazp avatar Jul 10 '16 08:07 davazp