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

1.0.1 • Public • Published

tuple-map Build Status NPM MIT

ES6 Map where keys are 2-tuples

Installation

npm install tuple-map --save

Usage

import { TupleMap } from 'tuple-map'
 
const map = new TupleMap
 
map.set(1, 2, 'a')
   .set(3, 4, 'b')
 
map.get(1, 2) // 'a'
map.get(3, 4) // 'b'
map.size      // 2

Tests

npm test

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i tuple-map

Weekly Downloads

1

Version

1.0.1

License

MIT

Last publish

Collaborators

  • bcherny