mild-map
A WeakMap that supports any value, it holds strong references to primitives, and weak references to objects.
Last updated 2 years ago by fabiospampinato .
Repository · Bugs · Original npm · Tarball · package.json
$ gnpm install mild-map 
SYNC missed versions from official npm registry.

MildMap

A WeakMap that supports any value, it holds strong references to primitives, and weak references to objects.

Install

npm install --save mild-map

Usage

It has the same API of a WeakMap, except that it just works with primitives too.

It also implements the size property, like a Map.

License

MIT © Fabio Spampinato

Current Tags

  • 1.1.1                                ...           latest (2 years ago)

3 Versions

  • 1.1.1                                ...           2 years ago
  • 1.1.0                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
  • is npm:@fabiospampinato/is@^2.5.0
Dev Dependencies (3)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |