a-difference

Returns the values from array that are not present in the other arrays

Usage no npm install needed!

<script type="module">
  import aDifference from 'https://cdn.skypack.dev/a-difference';
</script>

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