Remove duplicate values from an array. Fastest ES5 implementation.\hypertarget{md_sfcode_node_modules_array_unique_README_autotoc_md3201}{}\doxysection{Install}\label{md_sfcode_node_modules_array_unique_README_autotoc_md3201}
Install with \href{https://www.npmjs.com/}{\texttt{ npm}}\+:


\begin{DoxyCode}{0}
\DoxyCodeLine{\$ npm install -\/-\/save array-\/unique }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_array_unique_README_autotoc_md3202}{}\doxysection{Usage}\label{md_sfcode_node_modules_array_unique_README_autotoc_md3202}

\begin{DoxyCode}{0}
\DoxyCodeLine{var unique = require('array-\/unique');}
\DoxyCodeLine{}
\DoxyCodeLine{var arr = ['a', 'b', 'c', 'c'];}
\DoxyCodeLine{console.log(unique(arr)) //=> ['a', 'b', 'c']}
\DoxyCodeLine{console.log(arr)         //=> ['a', 'b', 'c']}
\DoxyCodeLine{}
\DoxyCodeLine{/* The above modifies the input array. To prevent that at a slight performance cost: */}
\DoxyCodeLine{var unique = require("{}array-\/unique"{}).immutable;}
\DoxyCodeLine{}
\DoxyCodeLine{var arr = ['a', 'b', 'c', 'c'];}
\DoxyCodeLine{console.log(unique(arr)) //=> ['a', 'b', 'c']}
\DoxyCodeLine{console.log(arr)         //=> ['a', 'b', 'c', 'c'] }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_array_unique_README_autotoc_md3203}{}\doxysection{About}\label{md_sfcode_node_modules_array_unique_README_autotoc_md3203}
\hypertarget{md_sfcode_node_modules_array_unique_README_autotoc_md3204}{}\doxysubsection{Related projects}\label{md_sfcode_node_modules_array_unique_README_autotoc_md3204}

\begin{DoxyItemize}
\item \href{https://www.npmjs.com/package/arr-diff}{\texttt{ arr-\/diff}}\+: Returns an array with only the unique values from the first array, by excluding all… \href{https://github.com/jonschlinkert/arr-diff}{\texttt{ more}} $\vert$ \href{https://github.com/jonschlinkert/arr-diff}{\texttt{ homepage}}
\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/arr-map}{\texttt{ arr-\/map}}\+: Faster, node.\+js focused alternative to Java\+Script\textquotesingle{}s native array map. $\vert$ \href{https://github.com/jonschlinkert/arr-map}{\texttt{ homepage}}
\item \href{https://www.npmjs.com/package/arr-pluck}{\texttt{ arr-\/pluck}}\+: Retrieves the value of a specified property from all elements in the collection. $\vert$ \href{https://github.com/jonschlinkert/arr-pluck}{\texttt{ homepage}}
\item \href{https://www.npmjs.com/package/arr-reduce}{\texttt{ arr-\/reduce}}\+: Fast array reduce that also loops over sparse elements. $\vert$ \href{https://github.com/jonschlinkert/arr-reduce}{\texttt{ homepage}}
\item \href{https://www.npmjs.com/package/arr-union}{\texttt{ arr-\/union}}\+: Combines a list of arrays, returning a single array with unique values, using strict equality… \href{https://github.com/jonschlinkert/arr-union}{\texttt{ more}} $\vert$ \href{https://github.com/jonschlinkert/arr-union}{\texttt{ homepage}}
\end{DoxyItemize}\hypertarget{md_sfcode_node_modules_array_unique_README_autotoc_md3205}{}\doxysubsection{Contributing}\label{md_sfcode_node_modules_array_unique_README_autotoc_md3205}
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_array_unique_README_autotoc_md3206}{}\doxysubsection{Building docs}\label{md_sfcode_node_modules_array_unique_README_autotoc_md3206}
\+\_\+(This document was generated by \href{https://github.com/verbose/verb-generate-readme}{\texttt{ verb-\/generate-\/readme}} (a \href{https://github.com/verbose/verb}{\texttt{ verb}} generator), please don\textquotesingle{}t edit the readme directly. Any changes to the readme must be made in .verb.md.)\+\_\+

To generate the readme and API documentation with \href{https://github.com/verbose/verb}{\texttt{ verb}}\+:


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

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_array_unique_README_autotoc_md3207}{}\doxysubsection{Running tests}\label{md_sfcode_node_modules_array_unique_README_autotoc_md3207}
Install dev dependencies\+:


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

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


\begin{DoxyItemize}
\item \href{https://github.com/jonschlinkert}{\texttt{ github/jonschlinkert}}
\item \href{http://twitter.com/jonschlinkert}{\texttt{ twitter/jonschlinkert}}
\end{DoxyItemize}\hypertarget{md_sfcode_node_modules_array_unique_README_autotoc_md3209}{}\doxysubsection{License}\label{md_sfcode_node_modules_array_unique_README_autotoc_md3209}
Copyright © 2016, \href{https://github.com/jonschlinkert}{\texttt{ Jon Schlinkert}}. Released under the \href{https://github.com/jonschlinkert/array-unique/blob/master/LICENSE}{\texttt{ MIT license}}.

\DoxyHorRuler{0}


{\itshape This file was generated by \href{https://github.com/verbose/verb-generate-readme}{\texttt{ verb-\/generate-\/readme}}, v0.\+1.\+28, on July 31, 2016.} 