tracker1 496 days ago. link 1 point ▲ ▼Don't do this in JS, the default, plain object is already a hashmap with string keys, this fluff is NOT faster. If you need typed keys, use a Map instead. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map