\begin{quote}
Returns an array with only the unique values from the first array, by excluding all values from additional arrays using strict equality for comparisons. \end{quote}
\hypertarget{md_sfcode_node_modules_arr_diff_README_autotoc_md3153}{}\doxysection{Install}\label{md_sfcode_node_modules_arr_diff_README_autotoc_md3153}
Install with \href{https://www.npmjs.com/}{\texttt{ npm}}\+:


\begin{DoxyCode}{0}
\DoxyCodeLine{\$ npm install -\/-\/save arr-\/diff }

\end{DoxyCode}


Install with \href{https://yarnpkg.com}{\texttt{ yarn}}\+:


\begin{DoxyCode}{0}
\DoxyCodeLine{\$ yarn add arr-\/diff }

\end{DoxyCode}


Install with \href{https://bower.io/}{\texttt{ bower}}


\begin{DoxyCode}{0}
\DoxyCodeLine{\$ bower install arr-\/diff -\/-\/save }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_arr_diff_README_autotoc_md3154}{}\doxysection{Usage}\label{md_sfcode_node_modules_arr_diff_README_autotoc_md3154}
Returns the difference between the first array and additional arrays.


\begin{DoxyCode}{0}
\DoxyCodeLine{var diff = require('arr-\/diff');}
\DoxyCodeLine{}
\DoxyCodeLine{var a = ['a', 'b', 'c', 'd'];}
\DoxyCodeLine{var b = ['b', 'c'];}
\DoxyCodeLine{}
\DoxyCodeLine{console.log(diff(a, b))}
\DoxyCodeLine{//=> ['a', 'd'] }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_arr_diff_README_autotoc_md3155}{}\doxysection{Benchmarks}\label{md_sfcode_node_modules_arr_diff_README_autotoc_md3155}
This library versus \href{https://github.com/sindresorhus/array-differ}{\texttt{ array-\/differ}}, on April 14, 2017\+:


\begin{DoxyCode}{0}
\DoxyCodeLine{Benchmarking: (4 of 4)}
\DoxyCodeLine{ · long-\/dupes}
\DoxyCodeLine{ · long}
\DoxyCodeLine{ · med}
\DoxyCodeLine{ · short}
\DoxyCodeLine{}
\DoxyCodeLine{\# benchmark/fixtures/long-\/dupes.js (100804 bytes)}
\DoxyCodeLine{  arr-\/diff-\/3.0.0 x 822 ops/sec ±0.67\% (86 runs sampled)}
\DoxyCodeLine{  arr-\/diff-\/4.0.0 x 2,141 ops/sec ±0.42\% (89 runs sampled)}
\DoxyCodeLine{  array-\/differ x 708 ops/sec ±0.70\% (89 runs sampled)}
\DoxyCodeLine{}
\DoxyCodeLine{  fastest is arr-\/diff-\/4.0.0}
\DoxyCodeLine{}
\DoxyCodeLine{\# benchmark/fixtures/long.js (94529 bytes)}
\DoxyCodeLine{  arr-\/diff-\/3.0.0 x 882 ops/sec ±0.60\% (87 runs sampled)}
\DoxyCodeLine{  arr-\/diff-\/4.0.0 x 2,329 ops/sec ±0.97\% (83 runs sampled)}
\DoxyCodeLine{  array-\/differ x 769 ops/sec ±0.61\% (90 runs sampled)}
\DoxyCodeLine{}
\DoxyCodeLine{  fastest is arr-\/diff-\/4.0.0}
\DoxyCodeLine{}
\DoxyCodeLine{\# benchmark/fixtures/med.js (708 bytes)}
\DoxyCodeLine{  arr-\/diff-\/3.0.0 x 856,150 ops/sec ±0.42\% (89 runs sampled)}
\DoxyCodeLine{  arr-\/diff-\/4.0.0 x 4,665,249 ops/sec ±1.06\% (89 runs sampled)}
\DoxyCodeLine{  array-\/differ x 653,888 ops/sec ±1.02\% (86 runs sampled)}
\DoxyCodeLine{}
\DoxyCodeLine{  fastest is arr-\/diff-\/4.0.0}
\DoxyCodeLine{}
\DoxyCodeLine{\# benchmark/fixtures/short.js (60 bytes)}
\DoxyCodeLine{  arr-\/diff-\/3.0.0 x 3,078,467 ops/sec ±0.77\% (93 runs sampled)}
\DoxyCodeLine{  arr-\/diff-\/4.0.0 x 9,213,296 ops/sec ±0.65\% (89 runs sampled)}
\DoxyCodeLine{  array-\/differ x 1,337,051 ops/sec ±0.91\% (92 runs sampled)}
\DoxyCodeLine{}
\DoxyCodeLine{  fastest is arr-\/diff-\/4.0.0 }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_arr_diff_README_autotoc_md3156}{}\doxysection{About}\label{md_sfcode_node_modules_arr_diff_README_autotoc_md3156}
\hypertarget{md_sfcode_node_modules_arr_diff_README_autotoc_md3157}{}\doxysubsection{Related projects}\label{md_sfcode_node_modules_arr_diff_README_autotoc_md3157}

\begin{DoxyItemize}
\item \href{https://www.npmjs.com/package/arr-flatten}{\texttt{ arr-\/flatten}}\+: Recursively flatten an array or arrays. This is the fastest implementation of array flatten. $\vert$ \href{https://github.com/jonschlinkert/arr-flatten}{\texttt{ homepage}}
\item \href{https://www.npmjs.com/package/array-filter}{\texttt{ array-\/filter}}\+: Array\+::filter for older browsers. $\vert$ \href{https://github.com/juliangruber/array-filter}{\texttt{ homepage}}
\item \href{https://www.npmjs.com/package/array-intersection}{\texttt{ array-\/intersection}}\+: Return an array with the unique values present in {\itshape all} given arrays using strict equality… \href{https://github.com/jonschlinkert/array-intersection}{\texttt{ more}} $\vert$ \href{https://github.com/jonschlinkert/array-intersection}{\texttt{ homepage}}
\end{DoxyItemize}\hypertarget{md_sfcode_node_modules_arr_diff_README_autotoc_md3158}{}\doxysubsection{Contributing}\label{md_sfcode_node_modules_arr_diff_README_autotoc_md3158}
Pull requests and stars are always welcome. For bugs and feature requests, \href{../../issues/new}{\texttt{ please create an issue}}.\hypertarget{md_sfcode_node_modules_arr_diff_README_autotoc_md3159}{}\doxysubsection{Contributors}\label{md_sfcode_node_modules_arr_diff_README_autotoc_md3159}
\tabulinesep=1mm
\begin{longtabu}spread 0pt [c]{*{2}{|X[-1]}|}
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ {\bfseries{Commits}}   }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ {\bfseries{Contributor}}    }\\\cline{1-2}
\endfirsthead
\hline
\endfoot
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ {\bfseries{Commits}}   }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ {\bfseries{Contributor}}    }\\\cline{1-2}
\endhead
33   &\href{https://github.com/jonschlinkert}{\texttt{ jonschlinkert}}    \\\cline{1-2}
2   &\href{https://github.com/paulmillr}{\texttt{ paulmillr}}   \\\cline{1-2}
\end{longtabu}
\hypertarget{md_sfcode_node_modules_arr_diff_README_autotoc_md3160}{}\doxysubsection{Building docs}\label{md_sfcode_node_modules_arr_diff_README_autotoc_md3160}
\+\_\+(This project\textquotesingle{}s readme.\+md is generated by \href{https://github.com/verbose/verb-generate-readme}{\texttt{ verb}}, please don\textquotesingle{}t edit the readme directly. Any changes to the readme must be made in the .verb.md readme template.)\+\_\+

To generate the readme, run the following command\+:


\begin{DoxyCode}{0}
\DoxyCodeLine{\$ npm install -\/g verbose/verb\#dev verb-\/generate-\/readme \&\& verb }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_arr_diff_README_autotoc_md3161}{}\doxysubsection{Running tests}\label{md_sfcode_node_modules_arr_diff_README_autotoc_md3161}
Running 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\+:


\begin{DoxyCode}{0}
\DoxyCodeLine{\$ npm install \&\& npm test }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_arr_diff_README_autotoc_md3162}{}\doxysubsection{Author}\label{md_sfcode_node_modules_arr_diff_README_autotoc_md3162}
{\bfseries{Jon Schlinkert}}


\begin{DoxyItemize}
\item \href{https://github.com/jonschlinkert}{\texttt{ github/jonschlinkert}}
\item \href{https://twitter.com/jonschlinkert}{\texttt{ twitter/jonschlinkert}}
\end{DoxyItemize}\hypertarget{md_sfcode_node_modules_arr_diff_README_autotoc_md3163}{}\doxysubsection{License}\label{md_sfcode_node_modules_arr_diff_README_autotoc_md3163}
Copyright © 2017, \href{https://github.com/jonschlinkert}{\texttt{ Jon Schlinkert}}. Released under the \mbox{[}MIT License\mbox{]}(LICENSE).

\DoxyHorRuler{0}


{\itshape This file was generated by \href{https://github.com/verbose/verb-generate-readme}{\texttt{ verb-\/generate-\/readme}}, v0.\+5.\+0, on April 14, 2017.} 