Javascript – Implement Map using composite unordered keys
In javascript a Map allows uniquely retrieving a "value" based on a single associated "key" - like so: let m = new Map(); m.set('a', 'my value'); let v = m.get('a'); // v === 'my value' How can we implement a…