Package Exports
- arr-diff
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (arr-diff) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
arr-diff

Returns an array with only the unique values from the first array, by excluding all values from the second array. Uses strict equality for comparisons.
Why another array difference lib? I wanted the fastest, correct implementation I could find.
Install
Install with npm
npm i arr-diff --saveInstall with bower
bower install arr-diff --saveRun tests
npm testUsage
var diff = require('arr-diff');API
diff
Return the difference between two arrays.
a{Array}b{Array}returns: {Array}
var a = ['a', 'b', 'c', 'd'];
var b = ['b', 'c'];
console.log(difference(a, b))
//=> ['a', 'd']Author
Jon Schlinkert
Other javascript/node.js utils
Other projects that I maintain:
- arr-flatten
- arrayify-compact
- compact-object
- delete
- for-in
- for-own
- has-any
- has-value
- is-number
- is-plain-object
- mixin-deep
- mixin-object
- object-length
- omit-empty
- reduce-object
License
Copyright (c) 2014 Jon Schlinkert
Released under the MIT license
This file was generated by verb on December 02, 2014.