set-collection

Set collection type

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 }]; 

In your project path:

$ npm install set-collection

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

Tests

$ npm test