\begin{quote}
Create an array of unique values, in order, from the input arrays \end{quote}
\hypertarget{md_sfcode_node_modules_array_union_readme_autotoc_md3193}{}\doxysection{Install}\label{md_sfcode_node_modules_array_union_readme_autotoc_md3193}

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

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

\begin{DoxyCode}{0}
\DoxyCodeLine{const arrayUnion = require('array-\/union');}
\DoxyCodeLine{}
\DoxyCodeLine{arrayUnion([1, 1, 2, 3], [2, 3]);}
\DoxyCodeLine{//=> [1, 2, 3]}
\DoxyCodeLine{}
\DoxyCodeLine{arrayUnion(['foo', 'foo', 'bar']);}
\DoxyCodeLine{//=> ['foo', 'bar']}
\DoxyCodeLine{}
\DoxyCodeLine{arrayUnion(['🐱', '🦄', '🐻'], ['🦄', '🌈']);}
\DoxyCodeLine{//=> ['🐱', '🦄', '🐻', '🌈']}
\DoxyCodeLine{}
\DoxyCodeLine{arrayUnion(['🐱', '🦄'], ['🐻', '🦄'], ['🐶', '🌈', '🌈']);}
\DoxyCodeLine{//=> ['🐱', '🦄', '🐻', '🐶', '🌈'] }

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