0.0.2 • Published 9 years ago
array-without v0.0.2
array-without
Creates an array with excluded values.
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