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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.41,354latest

Version History

VersionDownloads (Last 7 Days)Published
0.0.41,354
0.0.30
0.0.20
0.0.00

Package Sidebar

Install

npm i advanced-map-initialized

Weekly Downloads

1,354

Version

0.0.4

License

MIT

Unpacked Size

4.25 kB

Total Files

4

Last publish

Collaborators

  • khai96_