multi-value-map
TypeScript icon, indicating that this package has built-in type declarations

1.3.0 • Public • Published

MultiValueMap - Map for easy handling of maps with value of array

Install

npm install multi-value-map
yarn add multi-value-map
pnpm add multi-value-map

Usage

import { MultiValueMap } from 'multi-value-map';

const map = new MultiValueMap();

map.push('foo', 'bar');
map.push('foo', 'baz');
map.get('foo'); // ['bar', 'baz']

map.get('empty'); // []

Package Sidebar

Install

npm i multi-value-map

Weekly Downloads

131

Version

1.3.0

License

MIT

Unpacked Size

72.2 kB

Total Files

33

Last publish

Collaborators

  • whitekiwi