0.0.2 • Published 9 years ago

array-without v0.0.2

Weekly downloads
5
License
MIT
Repository
github
Last release
9 years ago

array-without

Creates an array with excluded values.

NPM

Install

npm install array-without
bower install array-without

Usage

var without = require('array-without');

console.log(without(['a','b','c'], 'c')); // ['a','b']
console.log(without(['a','b','c'], ['b','c'])); // ['a']
console.log(without(['a','b','c'], 'b','c')); // ['a']
console.log(without(['a','b','c'], {})); // ['a','b','c']

Test

npm test

License

MIT