make-set

1.0.0 • Public • Published

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.

/make-set/

    Package Sidebar

    Install

    npm i make-set

    Weekly Downloads

    13

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • j-