advanced-map-initialized
v0.0.4
Published
Map-like class with default values
Downloads
5,797
Readme
advanced-map-initialized
Map-like class with default values
Usage
import Initialized from 'advanced-map-initialized'
const map = new Initialized(Map, x => String(x))
map.get(0) // expect: '0'
map.set(0, 'zero')
map.get(0) // expect: 'zero'