1.2.0 • Published 4 years ago

@essentials/one-key-map v1.2.0

Weekly downloads
1,620
License
MIT
Repository
github
Last release
4 years ago

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