xmap
Extended Map, Set, WeakMap, WeakSet JavaScript functions
npm install xmap --save
Features
- No dependencies as used native functions
- Reverse compatibility with
Map
,Set
,WeakMap
,WeakSet
as native functions are used - Improvements in
get
function in cases when you use objects
// Initiateconst map = // Setmapmap // Getmap // [ "#1", "#2" ]map // "#2"
API
xMap
(currently this only)xSet
xWeakMap
xWeakSet
Requirements for using
- Currently native support for
Map
,Set
,WeakSet
,WeakMap
- Nodejs or browser (latest versions)