UNPKG

@ungap/weakset

Version:

WeakSet for IE11 and engines with a WeakMap

14 lines (8 loc) 900 B
# WeakSet [![Build Status](https://travis-ci.com/ungap/weakset.svg?branch=master)](https://travis-ci.com/ungap/weakset) [![Coverage Status](https://coveralls.io/repos/github/ungap/weakset/badge.svg?branch=master)](https://coveralls.io/github/ungap/weakset?branch=master) [![Greenkeeper badge](https://badges.greenkeeper.io/ungap/weakset.svg)](https://greenkeeper.io/) ![WebReflection status](https://offline.report/status/webreflection.svg) 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/)