weak-value

    0.2.3 • Public • Published

    WeakValue

    Build Status Coverage Status

    A Map with weakly referenced values, instead of keys.

    In Node.js, it requires V8 release v8.4 or greater.

    import WeakValue from 'weak-value';
    // const WeakValue = require('weak-value');
    
    const wv = new WeakValue;
    
    (() => {
      const value = {};
      wv.set('any-key', value);
    })();

    Install

    npm i weak-value

    DownloadsWeekly Downloads

    42

    Version

    0.2.3

    License

    ISC

    Unpacked Size

    3.75 kB

    Total Files

    6

    Last publish

    Collaborators

    • webreflection