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 additional arrays using strict equality for comparisons.
Install
Install with npm
$ npm i arr-diff --saveInstall with bower
$ bower install arr-diff --saveAPI
diff
Return the difference between the first array and additional arrays.
Params
a{Array}b{Array}returns{Array}
Example
var diff = require('arr-diff');
var a = ['a', 'b', 'c', 'd'];
var b = ['b', 'c'];
console.log(diff(a, b))
//=> ['a', 'd']Related projects
- arr-flatten: Recursively flatten an array or arrays. This is the fastest implementation of array flatten. | homepage
- array-filter: Array#filter for older browsers. | homepage
- array-intersection: Return an array with the unique values present in all given arrays using strict equality… more | homepage
Running tests
Install dev dependencies:
$ npm i -d && npm testContributing
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Author
Jon Schlinkert
License
Copyright © 2015 Jon Schlinkert Released under the MIT license.
This file was generated by verb-cli on August 23, 2015.