ECMAScript6 WeakMap polyfill.
Available on npm
as weakmap-polyfill.
$ npm install weakmap-polyfill --save
This can also be installed with Bower
.
$ bower install weakmap-polyfill
WeakMap will defined in the global scope if native WeakMap is not supported.
require('weakmap-polyfill');
var weakMap = new WeakMap();
MIT