weak-dictionary
v0.24.0
Published
Universal ES6-compatible WeakMap wrapper
Maintainers
Readme
#Weak-Dictionary A memory-safe dictionary implementation using the CoreJS WeakMap polyfill
Why?
ES6 does not contain a weak dictionary API that tracks key's:
Naturally, we will need a Dictionary implementation that allows managed key tracking without preventing GC in various JS runtimes.
Usage
Install:
npm install weak-dictionaryUse:
var weakDict = require('weak-dictionary');
var dict = new weakDict();Profit!
