/map-polyfill

The Map object polyfill

Primary LanguageTypeScriptMIT LicenseMIT

map-polyfill

The Map object polyfill

A just-for-fun implementation of the Javascript Map object.

Differences from the native object

  • has() : takes O(n) vs O(1)
  • get() : takes O(n) vs O(1)