1.0.0 • Published 8 years ago
make-set v1.0.0
make-set
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
1.0.0
8 years ago