advanced-map-initialized
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

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'

License

MIT © Hoàng Văn Khải

Package Sidebar

Install

npm i advanced-map-initialized

Weekly Downloads

1,082

Version

0.0.4

License

MIT

Unpacked Size

4.25 kB

Total Files

4

Last publish

Collaborators

  • khai96_