https://github.com/bcherny/tuple-map
ES6 Map where keys are 2-tuples
https://github.com/bcherny/tuple-map
Last synced: 8 months ago
JSON representation
ES6 Map where keys are 2-tuples
- Host: GitHub
- URL: https://github.com/bcherny/tuple-map
- Owner: bcherny
- License: other
- Created: 2017-01-14T00:16:49.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-01-14T00:52:10.000Z (over 8 years ago)
- Last Synced: 2024-12-17T03:03:29.543Z (10 months ago)
- Language: TypeScript
- Size: 2.93 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# tuple-map [](https://circleci.com/gh/bcherny/tuple-map) [](https://www.npmjs.com/package/tuple-map) [](https://opensource.org/licenses/MIT)
> ES6 Map where keys are 2-tuples
## Installation
```sh
npm install tuple-map --save
```## Usage
```js
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
```sh
npm test
```## License
MIT