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

1.0.1 • Public • Published

tuple-set Build Status NPM MIT

ES6 Set where keys are 2-tuples

Installation

npm install tuple-set --save

Usage

import { TupleSet } from 'tuple-set'

const set = new TupleSet

set.add(1, 2)
   .add(3, 4)

set.has(1, 2) // true
set.size      // 2

Tests

npm test

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i tuple-set

Weekly Downloads

2

Version

1.0.1

License

MIT

Last publish

Collaborators

  • bcherny