a-difference
v1.0.0
Published
Returns the values from array that are not present in the other arrays
Downloads
2
Maintainers
Readme
a-difference
Returns the values from array that are not present in the other arrays
Install
$ npm install --save a-difference
Examples
var diff = require('a-difference');
console.log(diff(['github', 'a', 'b', 'facebook'], ['b'], ['github', 'e']));
// -> ['a', 'facebook', 'e']
Usage
require('a-difference')( *array )
Arguments:
*array
: sequence of arrays- Other arguments except of type array are ignored
Returns: Returns values from array that are not present in the other arrays
License
© 2016 vikram. MIT License