| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
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 with npm
$ npm i arr-diff --saveInstall with bower
$ bower install arr-diff --saveReturn the difference between the first array and additional arrays.
Params
Example
var diff = require('arr-diff');
var a = ['a', 'b', 'c', 'd'];
var b = ['b', 'c'];
console.log(diff(a, b))
//=> ['a', 'd']Install dev dependencies:
$ npm i -d && npm testPull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Jon Schlinkert
Copyright © 2015 Jon Schlinkert Released under the MIT license.
This file was generated by verb on Sat Dec 05 2015 23:24:53 GMT-0500 (EST).
| Back | FazBrowse Home | New Git URL |