array-without

0.0.2 • Public • Published

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

Package Sidebar

Install

npm i array-without

Weekly Downloads

1

Version

0.0.2

License

MIT

Last publish

Collaborators

  • miguelmota