a-difference

1.0.0 • Public • Published

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

Dependents (0)

Package Sidebar

Install

npm i a-difference

Weekly Downloads

2

Version

1.0.0

License

ISC

Last publish

Collaborators

  • vikramcse