array-complement
v0.0.1
Published
Returns an array of unique values that is the symmetric difference of the provided arrays.
Downloads
9
Maintainers
Readme
array-complement
Returns an array of unique values that is the symmetric difference of the provided arrays.
Install
npm install array-complementbower install array-complementUsage
const arrayComplement = require('array-complement');
console.log(arrayComplement(['foo','bar'], ['bar'])); // ['foo']
console.log(arrayComplement(['foo','bar','qux'],['qux','baz'],['thud','norf','bar'])); // ['foo','baz','thud','norf']Test
npm testLicense
MIT
