set-collection

Set collection type

npm install set-collection
1 downloads in the last week
4 downloads in the last month

set-collecton - Set collection type for JavaScript

Implemented according to upcoming ECMAScript6 standard, plus few non standard extensions

var Set = require('set-collection');

var set = new Set([23, 'foo', { lorem: true }]);

set.has('foo'); // true
set.add('bar');
set.delete(23);

console.log(set.values); // ['foo', 'bar', { lorem: true }];

Installation

NPM

In your project path:

$ npm install set-collection

Browser

You can easily bundle NPM packages for browser with modules-webmake

Tests Build Status

$ npm test
npm loves you