- A minimal WeakMap polyfill written in TypeScript, unit tested using Jasmine and Karma.
- The polyfill is full featured when comparing to the native implementation of WeakMap. All native operations complete with an asymptotic time complexity of O(1).
- Built file size is 2 KB minified.
Ensure that Node and npm are both installed.
Then, install gulp globally:
npm install -g gulp
Finally, install all development dependencies:
cd CLONED_REPO_DIR
npm install
Run the default gulp task to run the linter, run unit tests, build documentation, and build the required scripts.
Look at the gulp folder to view the available tasks to run.
If you're interested in contributing, see the Contributing section below. Otherwise, install this package via npm: es6-weakmap.
The dist folder contains all you'll need to get up and running.
The built documentation will always be located here: Documentation.
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request.
See the CHANGELOG.
Licensed under MIT. See the full license here: license.