@essentials/one-key-map
TypeScript icon, indicating that this package has built-in type declarations

1.2.0 • Public • Published

@essentials/one-key-map

Bundlephobia Types NPM Version MIT License

npm i @essentials/one-key-map

A Map-like data structure that only stores the most recently set key/value pair

Quick Start

import OneKeyMap from '@essentials/one-key-map'

const map = new OneKeyMap()
map.set('foo', 'bar')
map.get('foo')
// bar
map.set('foo2', 'bar2')
map.get('foo')
// undefined
map.get('foo2')
// bar2

LICENSE

MIT

Readme

Keywords

Package Sidebar

Install

npm i @essentials/one-key-map

Weekly Downloads

11,956

Version

1.2.0

License

MIT

Unpacked Size

8.81 kB

Total Files

20

Last publish

Collaborators

  • jaredlunde