0.0.1 • Published 9 years ago

array-complement v0.0.1

Weekly downloads
4
License
MIT
Repository
github
Last release
9 years ago

array-complement

Returns an array of unique values that is the symmetric difference of the provided arrays.

Install

npm install array-complement
bower install array-complement

Usage

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 test

License

MIT