Set collection type for JavaScript
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
.gitignore
.lint
.travis.yml
CHANGES
LICENCE
Makefile
README.md
package.json

README.md

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