mild-map
A WeakMap that supports any value, it holds strong references to primitives, and weak references to objects.
Last updated a year ago by fabiospampinato .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm 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 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.

It also implements all the iteration methods, like a Map.

License

MIT © Fabio Spampinato

Current Tags

  • 1.2.0                                ...           latest (a year ago)

5 Versions

  • 1.2.0                                ...           a year ago
  • 1.1.2                                ...           2 years ago
  • 1.1.1                                ...           4 years ago
  • 1.1.0                                ...           4 years ago
  • 1.0.0                                ...           4 years ago
Maintainers (1)
Downloads
Total 7
Today 0
This Week 0
This Month 2
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (3)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE