\begin{quote}
ES2015 \href{http://www.2ality.com/2014/01/object-assign.html}{\texttt{ {\ttfamily Object.\+assign()}}} \href{https://ponyfill.com}{\texttt{ ponyfill}} \end{quote}
\hypertarget{md_sfcode_node_modules_object_assign_readme_autotoc_md18765}{}\doxysection{Use the built-\/in}\label{md_sfcode_node_modules_object_assign_readme_autotoc_md18765}
Node.\+js 4 and up, as well as every evergreen browser (Chrome, Edge, Firefox, Opera, Safari), support {\ttfamily Object.\+assign()} \+:tada\+:. If you target only those environments, then by all means, use {\ttfamily Object.\+assign()} instead of this package.\hypertarget{md_sfcode_node_modules_object_assign_readme_autotoc_md18766}{}\doxysection{Install}\label{md_sfcode_node_modules_object_assign_readme_autotoc_md18766}

\begin{DoxyCode}{0}
\DoxyCodeLine{\$ npm install -\/-\/save object-\/assign }

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

\begin{DoxyCode}{0}
\DoxyCodeLine{const objectAssign = require('object-\/assign');}
\DoxyCodeLine{}
\DoxyCodeLine{objectAssign(\{foo: 0\}, \{bar: 1\});}
\DoxyCodeLine{//=> \{foo: 0, bar: 1\}}
\DoxyCodeLine{}
\DoxyCodeLine{// multiple sources}
\DoxyCodeLine{objectAssign(\{foo: 0\}, \{bar: 1\}, \{baz: 2\});}
\DoxyCodeLine{//=> \{foo: 0, bar: 1, baz: 2\}}
\DoxyCodeLine{}
\DoxyCodeLine{// overwrites equal keys}
\DoxyCodeLine{objectAssign(\{foo: 0\}, \{foo: 1\}, \{foo: 2\});}
\DoxyCodeLine{//=> \{foo: 2\}}
\DoxyCodeLine{}
\DoxyCodeLine{// ignores null and undefined sources}
\DoxyCodeLine{objectAssign(\{foo: 0\}, null, \{bar: 1\}, undefined);}
\DoxyCodeLine{//=> \{foo: 0, bar: 1\} }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_object_assign_readme_autotoc_md18768}{}\doxysection{API}\label{md_sfcode_node_modules_object_assign_readme_autotoc_md18768}
\hypertarget{md_sfcode_node_modules_object_assign_readme_autotoc_md18769}{}\doxysubsection{object\+Assign(target, \mbox{[}source, ...\mbox{]})}\label{md_sfcode_node_modules_object_assign_readme_autotoc_md18769}
Assigns enumerable own properties of {\ttfamily source} objects to the {\ttfamily target} object and returns the {\ttfamily target} object. Additional {\ttfamily source} objects will overwrite previous ones.\hypertarget{md_sfcode_node_modules_object_assign_readme_autotoc_md18770}{}\doxysection{Resources}\label{md_sfcode_node_modules_object_assign_readme_autotoc_md18770}

\begin{DoxyItemize}
\item \href{https://people.mozilla.org/~jorendorff/es6-draft.html\#sec-object.assign}{\texttt{ ES2015 spec -\/ Object.\+assign}}
\end{DoxyItemize}\hypertarget{md_sfcode_node_modules_object_assign_readme_autotoc_md18771}{}\doxysection{Related}\label{md_sfcode_node_modules_object_assign_readme_autotoc_md18771}

\begin{DoxyItemize}
\item \href{https://github.com/sindresorhus/deep-assign}{\texttt{ deep-\/assign}} -\/ Recursive {\ttfamily Object.\+assign()}
\end{DoxyItemize}\hypertarget{md_sfcode_node_modules_object_assign_readme_autotoc_md18772}{}\doxysection{License}\label{md_sfcode_node_modules_object_assign_readme_autotoc_md18772}
MIT © \href{https://sindresorhus.com}{\texttt{ Sindre Sorhus}} 