Simple hash map like implementation.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


HashMapJS is simple hash map like implementation.

The keys and values can be arbitrary javascript objects.
There is no requirements on objects used as keys or values.

The mechanism is trivial. For every key there is generated unique id (per HashMap instance).
That id is injected to the key object under high unlikely to collide field name ;)

That id is then used to keying in the underlying baking standard javascript association object.

1. This HashMap implementation is not thread safe.
  OK I know javascript is not multithreaded but it can have concurrent activities (e.g. setTimeout)
  This is enough to have race conditions.
2. The mentioned high unlikely to collide name is not a problem as log as there is no 
massively concurrent activities.

1. Make the HashMap implementation thread safe by applying The Wallace Variation of Lamport's bakery algorithm.