1.0.0 • Published 9 years ago

a-difference v1.0.0

Weekly downloads
9
License
ISC
Repository
github
Last release
9 years ago

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

1.0.0

9 years ago