Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

object-set-type

1.0.1 • Public • Published

object-set

Build Status dependency Status devDependency Status Coverage Status

A Set implementation which supports Objects.

Usage

'use strict';
 
const ObjectSet = require('object-set-type');
 
const set = new ObjectSet();
set.add(1);
set.add('Hello');
set.add({a: 1});
set.add({a: 1});
 
console.log(set.size); // 3
Array.from(set); // 1, "Hello", {a: 1}

Keywords

Install

npm i object-set-type

DownloadsWeekly Downloads

7,143

Version

1.0.1

License

MIT

Last publish

Collaborators

  • avatar