\begin{quote}
Set an array of unique values as the property of an object. Supports setting deeply nested properties using using object-\/paths/dot notation. \end{quote}
\hypertarget{md_sfcode_node_modules_union_value_README_autotoc_md31291}{}\doxysection{Install}\label{md_sfcode_node_modules_union_value_README_autotoc_md31291}
Install with \href{https://www.npmjs.com/}{\texttt{ npm}}\+:


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

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

\begin{DoxyCode}{0}
\DoxyCodeLine{var union = require('union-\/value');}
\DoxyCodeLine{}
\DoxyCodeLine{var obj = \{\};}
\DoxyCodeLine{}
\DoxyCodeLine{union(obj, 'a.b.c', ['one', 'two']);}
\DoxyCodeLine{union(obj, 'a.b.c', ['three']);}
\DoxyCodeLine{}
\DoxyCodeLine{console.log(obj);}
\DoxyCodeLine{//=> \{a: \{b: \{c: [ 'one', 'two', 'three' ] \}\}\} }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_union_value_README_autotoc_md31293}{}\doxysection{About}\label{md_sfcode_node_modules_union_value_README_autotoc_md31293}
\hypertarget{md_sfcode_node_modules_union_value_README_autotoc_md31294}{}\doxysubsection{Related projects}\label{md_sfcode_node_modules_union_value_README_autotoc_md31294}

\begin{DoxyItemize}
\item \href{https://www.npmjs.com/package/assign-value}{\texttt{ assign-\/value}}\+: Assign a value or extend a deeply nested property of an object using object path… \href{https://github.com/jonschlinkert/assign-value}{\texttt{ more}} $\vert$ \href{https://github.com/jonschlinkert/assign-value}{\texttt{ homepage}}
\item \href{https://www.npmjs.com/package/get-value}{\texttt{ get-\/value}}\+: Use property paths ({\ttfamily a.\+b.\+c}) to get a nested value from an object. $\vert$ \mbox{[}homepage\mbox{]}(\href{https://github.com/jonschlinkert/get-value}{\texttt{ https\+://github.\+com/jonschlinkert/get-\/value}} \char`\"{}\+Use property paths (\`{}a.\+b.\+c\`{}) to get a nested value from an object.\char`\"{})
\item \href{https://www.npmjs.com/package/has-value}{\texttt{ has-\/value}}\+: Returns true if a value exists, false if empty. Works with deeply nested values using… \href{https://github.com/jonschlinkert/has-value}{\texttt{ more}} $\vert$ \href{https://github.com/jonschlinkert/has-value}{\texttt{ homepage}}
\item \href{https://www.npmjs.com/package/set-value}{\texttt{ set-\/value}}\+: Create nested values and any intermediaries using dot notation (`\textquotesingle{}a.\+b.\+c'{\ttfamily ) paths. $\vert$ \mbox{[}homepage\mbox{]}(\href{https://github.com/jonschlinkert/set-value}{\texttt{ https\+://github.\+com/jonschlinkert/set-\/value}} \char`\"{}\+Create nested values and any intermediaries using dot notation ($<$/tt$>$\textquotesingle{}a.\+b.\+c\textquotesingle{}\`{}) paths.\char`\"{})}
\item {\ttfamily \mbox{[}unset-\/value\mbox{]}(\href{https://www.npmjs.com/package/unset-value}{\texttt{ https\+://www.\+npmjs.\+com/package/unset-\/value}})\+: Delete nested properties from an object using dot notation. $\vert$ \mbox{[}homepage\mbox{]}(\href{https://github.com/jonschlinkert/unset-value}{\texttt{ https\+://github.\+com/jonschlinkert/unset-\/value}} \char`\"{}\+Delete nested properties from an object using dot notation.\char`\"{})}
\end{DoxyItemize}

{\ttfamily }\hypertarget{md_sfcode_node_modules_union_value_README_autotoc_md31295}{}\doxysubsection{Contributing}\label{md_sfcode_node_modules_union_value_README_autotoc_md31295}
{\ttfamily  Pull requests and stars are always welcome. For bugs and feature requests, \href{../../issues/new}{\texttt{ please create an issue}}.}

{\ttfamily }\hypertarget{md_sfcode_node_modules_union_value_README_autotoc_md31296}{}\doxysubsection{Building docs}\label{md_sfcode_node_modules_union_value_README_autotoc_md31296}
{\ttfamily  \+\_\+(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.)\+\_\+}

{\ttfamily To generate the readme, run the following command\+:}

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

\end{DoxyCode}
}

{\ttfamily }\hypertarget{md_sfcode_node_modules_union_value_README_autotoc_md31297}{}\doxysubsection{Running tests}\label{md_sfcode_node_modules_union_value_README_autotoc_md31297}
{\ttfamily  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\+:}

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

\end{DoxyCode}
}

{\ttfamily }\hypertarget{md_sfcode_node_modules_union_value_README_autotoc_md31298}{}\doxysubsection{Author}\label{md_sfcode_node_modules_union_value_README_autotoc_md31298}
{\ttfamily  {\bfseries{Jon Schlinkert}}}

{\ttfamily 
\begin{DoxyItemize}
\item \href{https://github.com/jonschlinkert}{\texttt{ github/jonschlinkert}}
\item \href{https://twitter.com/jonschlinkert}{\texttt{ twitter/jonschlinkert}}
\end{DoxyItemize}}

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

{\ttfamily \DoxyHorRuler{0}
}

{\ttfamily {\itshape This file was generated by \href{https://github.com/verbose/verb-generate-readme}{\texttt{ verb-\/generate-\/readme}}, v0.\+4.\+2, on February 25, 2017.} }