\begin{quote}
Create an array without duplicates \end{quote}
It\textquotesingle{}s already pretty fast, but will be much faster when \href{https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set}{\texttt{ Set}} becomes available in V8 (especially with large arrays).\hypertarget{md_sfcode_node_modules_array_uniq_readme_autotoc_md3197}{}\doxysection{Install}\label{md_sfcode_node_modules_array_uniq_readme_autotoc_md3197}

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

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

\begin{DoxyCode}{0}
\DoxyCodeLine{const arrayUniq = require('array-\/uniq');}
\DoxyCodeLine{}
\DoxyCodeLine{arrayUniq([1, 1, 2, 3, 3]);}
\DoxyCodeLine{//=> [1, 2, 3]}
\DoxyCodeLine{}
\DoxyCodeLine{arrayUniq(['foo', 'foo', 'bar', 'foo']);}
\DoxyCodeLine{//=> ['foo', 'bar'] }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_array_uniq_readme_autotoc_md3199}{}\doxysection{License}\label{md_sfcode_node_modules_array_uniq_readme_autotoc_md3199}
MIT © \href{https://sindresorhus.com}{\texttt{ Sindre Sorhus}} 