{\bfseries{Contributing}}

\begin{quote}
Define a non-\/enumerable property on an object. Uses Reflect.\+define\+Property when available, otherwise Object.\+define\+Property. \end{quote}
Please consider following this project\textquotesingle{}s author, \href{https://github.com/jonschlinkert}{\texttt{ Jon Schlinkert}}, and consider starring the project to show your \+:heart\+: and support.\hypertarget{md_sfcode_node_modules_define_property_README_autotoc_md7991}{}\doxysection{Install}\label{md_sfcode_node_modules_define_property_README_autotoc_md7991}
Install with \href{https://www.npmjs.com/}{\texttt{ npm}}\+:


\begin{DoxyCode}{0}
\DoxyCodeLine{\$ npm install -\/-\/save define-\/property }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_define_property_README_autotoc_md7992}{}\doxysection{Release history}\label{md_sfcode_node_modules_define_property_README_autotoc_md7992}
See the CHANGELOG for updates.\hypertarget{md_sfcode_node_modules_define_property_README_autotoc_md7993}{}\doxysection{Usage}\label{md_sfcode_node_modules_define_property_README_autotoc_md7993}
{\bfseries{Params}}


\begin{DoxyItemize}
\item {\ttfamily object}\+: The object on which to define the property.
\item {\ttfamily key}\+: The name of the property to be defined or modified.
\item {\ttfamily value}\+: The value or descriptor of the property being defined or modified.
\end{DoxyItemize}


\begin{DoxyCode}{0}
\DoxyCodeLine{var define = require('define-\/property');}
\DoxyCodeLine{var obj = \{\};}
\DoxyCodeLine{define(obj, 'foo', function(val) \{}
\DoxyCodeLine{  return val.toUpperCase();}
\DoxyCodeLine{\});}
\DoxyCodeLine{}
\DoxyCodeLine{// by default, defined properties are non-\/enumberable}
\DoxyCodeLine{console.log(obj);}
\DoxyCodeLine{//=> \{\}}
\DoxyCodeLine{}
\DoxyCodeLine{console.log(obj.foo('bar'));}
\DoxyCodeLine{//=> 'BAR' }

\end{DoxyCode}


{\bfseries{defining setters/getters}}

Pass the same properties you would if using \href{https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/defineProperty}{\texttt{ Object.\+define\+Property}} or \href{https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect/defineProperty}{\texttt{ Reflect.\+define\+Property}}.


\begin{DoxyCode}{0}
\DoxyCodeLine{define(obj, 'foo', \{}
\DoxyCodeLine{  set: function() \{\},}
\DoxyCodeLine{  get: function() \{\}}
\DoxyCodeLine{\}); }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_define_property_README_autotoc_md7994}{}\doxysection{About}\label{md_sfcode_node_modules_define_property_README_autotoc_md7994}
$<$details$>$

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

$<$/details$>$

$<$details$>$

{\bfseries{Running Tests}} 

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\+:


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

\end{DoxyCode}


$<$/details$>$

$<$details$>$

{\bfseries{Building docs}} 

\+\_\+(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.)\+\_\+

To generate the readme, run the following command\+:


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

\end{DoxyCode}


$<$/details$>$\hypertarget{md_sfcode_node_modules_define_property_README_autotoc_md7995}{}\doxysubsection{Related projects}\label{md_sfcode_node_modules_define_property_README_autotoc_md7995}
You might also be interested in these projects\+:


\begin{DoxyItemize}
\item \href{https://www.npmjs.com/package/assign-deep}{\texttt{ assign-\/deep}}\+: Deeply assign the enumerable properties and/or es6 Symbol properies of source objects to the target… \href{https://github.com/jonschlinkert/assign-deep}{\texttt{ more}} $\vert$ \mbox{[}homepage\mbox{]}(\href{https://github.com/jonschlinkert/assign-deep}{\texttt{ https\+://github.\+com/jonschlinkert/assign-\/deep}} \char`\"{}\+Deeply assign the enumerable properties and/or es6 Symbol properies of source objects to the target (first) object.\char`\"{})
\item \href{https://www.npmjs.com/package/extend-shallow}{\texttt{ extend-\/shallow}}\+: Extend an object with the properties of additional objects. node.\+js/javascript util. $\vert$ \href{https://github.com/jonschlinkert/extend-shallow}{\texttt{ homepage}}
\item \href{https://www.npmjs.com/package/merge-deep}{\texttt{ merge-\/deep}}\+: Recursively merge values in a javascript object. $\vert$ \href{https://github.com/jonschlinkert/merge-deep}{\texttt{ homepage}}
\item \href{https://www.npmjs.com/package/mixin-deep}{\texttt{ mixin-\/deep}}\+: Deeply mix the properties of objects into the first object. Like merge-\/deep, but doesn\textquotesingle{}t clone. $\vert$ \href{https://github.com/jonschlinkert/mixin-deep}{\texttt{ homepage}}
\end{DoxyItemize}\hypertarget{md_sfcode_node_modules_define_property_README_autotoc_md7996}{}\doxysubsection{Contributors}\label{md_sfcode_node_modules_define_property_README_autotoc_md7996}
\tabulinesep=1mm
\begin{longtabu}spread 0pt [c]{*{2}{|X[-1]}|}
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ {\bfseries{Commits}}   }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ {\bfseries{Contributor}}    }\\\cline{1-2}
\endfirsthead
\hline
\endfoot
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ {\bfseries{Commits}}   }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ {\bfseries{Contributor}}    }\\\cline{1-2}
\endhead
28   &\href{https://github.com/jonschlinkert}{\texttt{ jonschlinkert}}    \\\cline{1-2}
1   &\href{https://github.com/doowb}{\texttt{ doowb}}   \\\cline{1-2}
\end{longtabu}
\hypertarget{md_sfcode_node_modules_define_property_README_autotoc_md7997}{}\doxysubsection{Author}\label{md_sfcode_node_modules_define_property_README_autotoc_md7997}
{\bfseries{Jon Schlinkert}}


\begin{DoxyItemize}
\item Connect with me on \href{https://linkedin.com/in/jonschlinkert}{\texttt{ linkedin/in/jonschlinkert}}
\item Follow me on \href{https://github.com/jonschlinkert}{\texttt{ github/jonschlinkert}}
\item Follow me on \href{https://twitter.com/jonschlinkert}{\texttt{ twitter/jonschlinkert}}
\end{DoxyItemize}\hypertarget{md_sfcode_node_modules_define_property_README_autotoc_md7998}{}\doxysubsection{License}\label{md_sfcode_node_modules_define_property_README_autotoc_md7998}
Copyright © 2018, \href{https://github.com/jonschlinkert}{\texttt{ Jon Schlinkert}}. Released under the \mbox{[}MIT License\mbox{]}(LICENSE).

\DoxyHorRuler{0}


{\itshape This file was generated by \href{https://github.com/verbose/verb-generate-readme}{\texttt{ verb-\/generate-\/readme}}, v0.\+6.\+0, on January 25, 2018.} 