@supercharge/map
Advanced tools
Changelog
1.5.0 - 2021-09-13
toArray()
method: converting the map to a JavaScript array containing arrays for each key-value-pair of this mapMap.from()
method to create a new Map instance. This Map.from
method aligns with JavaScript’s Array.from
or Object.fromX
methodspick(...keys)
method: creating a new map with the picked keys
uvu
and c8
instead of jest
for testingChangelog
1.4.0 - 2021-07-05
Map.of({ key: 'value' })
or new Map({ key: 'value' })
Map.of([['key', 'value']])
isMissing(key)
method: determining whether the map is missing the given key
toObject()
method: converting the map to a plain JavaScript object@supercharge/goodies
dependencymissing(key)
method in favor of isMissing(key)