@ungap/weakset
Version:
WeakSet for IE11 and engines with a WeakMap
14 lines (8 loc) • 900 B
Markdown
# WeakSet
[](https://travis-ci.com/ungap/weakset) [](https://coveralls.io/github/ungap/weakset?branch=master) [](https://greenkeeper.io/) 
A polyfill for IE11 or browsers that have a WeakMap, but not a [WeakSet](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet).
* CDN via https://unpkg.com/@ungap/weakset
* ESM via `import WeakSet from '@ungap/weakset'`
* CJS via `const WeakSet = require('@ungap/weakset')`
Compatible down to IE9, works well with ES5 shim upfront in IE8 (and maybe lower too).
[Live test](https://ungap.github.io/weakset/test/)