Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

31 lines (18 sloc) 0.783 kB

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
Jump to Line
Something went wrong with that request. Please try again.