shrine-medco/shrine-webclient/src/main/html/node_modules/arr-diff23de2099ce18release/1.22.2.4
shrine-medco/shrine-webclient/src/main/html/node_modules/arr-diff
23de2099ce18release/1.22.2.4
README.md
README.md
arr-diff ![NPM version](https://www.npmjs.com/package/arr-diff) ![Build Status](https://travis-ci.org/jonschlinkert/base)
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
sh $ npm i arr-diff --save
Install with bower
sh $ bower install arr-diff --save
API
[diff](index.js#L33)
Return the difference between the first array and additional arrays.
Params
- a {Array}
- b {Array}
- returns {Array}
Example
js 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:
sh $ npm i -d && npm test
Contributing
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Author
Jon Schlinkert
+ github/jonschlinkert + twitter/jonschlinkert
License
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)._
c4science · Help