1.0.0 • Published 8 years ago

make-set v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

make-set

master branch build status

Ensures that a given input can be used as a set.

Example

import makeSet from 'make-set';

function hasFoobar (input) {
    return makeSet(input).has('foobar');
}

const result = hasFoobar(['hello', 'foobar', 'world']);
console.log(result); // => true

Installing

$ npm install --save j-/make-set

Building

Will output to dist/make-set.js.

$ npm install && npm run build

Testing

$ npm install && npm test

License

MIT license.