@ungap/essential-map
Version:
An essential Map poorlyfill for legacy browsers.
16 lines (9 loc) • 989 B
Markdown
# Essential Map
[](https://travis-ci.com/ungap/essential-map) [](https://coveralls.io/github/ungap/essential-map?branch=master) [](https://greenkeeper.io/) 
An essential [Map](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map) poorlyfill for legacy browsers.
Only methods are `delete`, `forEach`, `get`, `has`, and `set`.
* CDN via https://unpkg.com/@ungap/essential-map
* ESM via `import Map from '@ungap/essential-map'`
* CJS via `const Map = require('@ungap/essential-map')`
Compatible down to IE9, works well with ES5 shim upfront in IE8 (and maybe lower too).
[Live test](https://ungap.github.io/essential-map/test/)