{"name":"arr-diff","description":"Returns an array with only the unique values from the first array, by excluding all values from additional arrays using strict equality for comparisons.","version":"3.0.0","homepage":"https://github.com/jonschlinkert/arr-diff","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/arr-diff.git"},"bugs":{"url":"https://github.com/jonschlinkert/arr-diff/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"arr-flatten":"^1.0.1"},"devDependencies":{"ansi-bold":"^0.1.1","array-differ":"^1.0.0","benchmarked":"^0.2.4","gulp-format-md":"^0.1.9","minimist":"^1.2.0","mocha":"^2.4.5"},"keywords":["arr","array","array differ","array-differ","diff","differ","difference"],"verb":{"related":{"list":["arr-flatten","array-filter","array-intersection"]},"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"lint":{"reflinks":true},"reflinks":["verb","array-differ"]},"gitHead":"51202a80dc0af5ae8576c8df77c78d4cef44486e","_id":"arr-diff@3.0.0","_shasum":"39126e644f1d67f47de92d7b7028d60a37976152","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.5.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"},{"name":"paulmillr","email":"paul@paulmillr.com"}],"dist":{"shasum":"39126e644f1d67f47de92d7b7028d60a37976152","tarball":"http://registry-npm.ywwl.com/arr-diff/download/arr-diff-3.0.0.tgz","integrity":"sha512-/fxCHXhWKLL1sN8QAPGYSFzNgGcCMOIMf+dDyrDnq3oMV1opB18nrcZ5Y3xu0X0tWujsswdsvp4ctuKF2IOoFA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCFv8WieAqcv7m0kJZxOS3+lkIJ11xGGoWniSGx57sXMgIhAI+zVXOT/UmbXp9AR6p7zcATirBTtgtmgx3PXx8puXJ0"}],"size":2691,"noattachment":false,"key":"/arr-diff/-/arr-diff-3.0.0.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/arr-diff-3.0.0.tgz_1462609496353_0.09041622024960816"},"directories":{},"readme":"# arr-diff [![NPM version](https://img.shields.io/npm/v/arr-diff.svg?style=flat)](https://www.npmjs.com/package/arr-diff) [![NPM monthly downloads](https://img.shields.io/npm/dm/arr-diff.svg?style=flat)](https://npmjs.org/package/arr-diff) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/arr-diff.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/arr-diff)\n\n> Returns an array with only the unique values from the first array, by excluding all values from additional arrays using strict equality for comparisons.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save arr-diff\n```\n\nInstall with [yarn](https://yarnpkg.com):\n\n```sh\n$ yarn add arr-diff\n```\n\nInstall with [bower](https://bower.io/)\n\n```sh\n$ bower install arr-diff --save\n```\n\n## Usage\n\nReturns the difference between the first array and additional arrays.\n\n```js\nvar diff = require('arr-diff');\n\nvar a = ['a', 'b', 'c', 'd'];\nvar b = ['b', 'c'];\n\nconsole.log(diff(a, b))\n//=> ['a', 'd']\n```\n\n## Benchmarks\n\nThis library versus [array-differ](https://github.com/sindresorhus/array-differ), on April 14, 2017:\n\n```\nBenchmarking: (4 of 4)\n · long-dupes\n · long\n · med\n · short\n\n# benchmark/fixtures/long-dupes.js (100804 bytes)\n  arr-diff-3.0.0 x 822 ops/sec ±0.67% (86 runs sampled)\n  arr-diff-4.0.0 x 2,141 ops/sec ±0.42% (89 runs sampled)\n  array-differ x 708 ops/sec ±0.70% (89 runs sampled)\n\n  fastest is arr-diff-4.0.0\n\n# benchmark/fixtures/long.js (94529 bytes)\n  arr-diff-3.0.0 x 882 ops/sec ±0.60% (87 runs sampled)\n  arr-diff-4.0.0 x 2,329 ops/sec ±0.97% (83 runs sampled)\n  array-differ x 769 ops/sec ±0.61% (90 runs sampled)\n\n  fastest is arr-diff-4.0.0\n\n# benchmark/fixtures/med.js (708 bytes)\n  arr-diff-3.0.0 x 856,150 ops/sec ±0.42% (89 runs sampled)\n  arr-diff-4.0.0 x 4,665,249 ops/sec ±1.06% (89 runs sampled)\n  array-differ x 653,888 ops/sec ±1.02% (86 runs sampled)\n\n  fastest is arr-diff-4.0.0\n\n# benchmark/fixtures/short.js (60 bytes)\n  arr-diff-3.0.0 x 3,078,467 ops/sec ±0.77% (93 runs sampled)\n  arr-diff-4.0.0 x 9,213,296 ops/sec ±0.65% (89 runs sampled)\n  array-differ x 1,337,051 ops/sec ±0.91% (92 runs sampled)\n\n  fastest is arr-diff-4.0.0\n```\n\n## About\n\n### Related projects\n\n* [arr-flatten](https://www.npmjs.com/package/arr-flatten): Recursively flatten an array or arrays. This is the fastest implementation of array flatten. | [homepage](https://github.com/jonschlinkert/arr-flatten \"Recursively flatten an array or arrays. This is the fastest implementation of array flatten.\")\n* [array-filter](https://www.npmjs.com/package/array-filter): Array#filter for older browsers. | [homepage](https://github.com/juliangruber/array-filter \"Array#filter for older browsers.\")\n* [array-intersection](https://www.npmjs.com/package/array-intersection): Return an array with the unique values present in _all_ given arrays using strict equality… [more](https://github.com/jonschlinkert/array-intersection) | [homepage](https://github.com/jonschlinkert/array-intersection \"Return an array with the unique values present in _all_ given arrays using strict equality for comparisons.\")\n\n### Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\n### Contributors\n\n| **Commits** | **Contributor** | \n| --- | --- |\n| 33 | [jonschlinkert](https://github.com/jonschlinkert) |\n| 2 | [paulmillr](https://github.com/paulmillr) |\n\n### Building docs\n\n_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_\n\nTo generate the readme, run the following command:\n\n```sh\n$ npm install -g verbose/verb#dev verb-generate-readme && verb\n```\n\n### Running tests\n\nRunning and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:\n\n```sh\n$ npm install && npm test\n```\n\n### Author\n\n**Jon Schlinkert**\n\n* [github/jonschlinkert](https://github.com/jonschlinkert)\n* [twitter/jonschlinkert](https://twitter.com/jonschlinkert)\n\n### License\n\nCopyright © 2017, [Jon Schlinkert](https://github.com/jonschlinkert).\nReleased under the [MIT License](LICENSE).\n\n***\n\n_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.5.0, on April 14, 2017._","publish_time":1462609498564,"_cnpm_publish_time":1462609498564,"dist-tags":{"latest":"4.0.0"}}