\begin{quote}
Define a non-\/enumerable property on an object. \end{quote}
\hypertarget{md_sfcode_node_modules_base_node_modules_define_property_README_autotoc_md3806}{}\doxysection{Install}\label{md_sfcode_node_modules_base_node_modules_define_property_README_autotoc_md3806}
Install with \href{https://www.npmjs.com/}{\texttt{ npm}}\+:


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

\end{DoxyCode}


Install with \href{https://yarnpkg.com}{\texttt{ yarn}}\+:


\begin{DoxyCode}{0}
\DoxyCodeLine{\$ yarn add define-\/property }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_base_node_modules_define_property_README_autotoc_md3807}{}\doxysection{Usage}\label{md_sfcode_node_modules_base_node_modules_define_property_README_autotoc_md3807}
{\bfseries{Params}}


\begin{DoxyItemize}
\item {\ttfamily obj}\+: The object on which to define the property.
\item {\ttfamily prop}\+: The name of the property to be defined or modified.
\item {\ttfamily descriptor}\+: The descriptor for 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{console.log(obj);}
\DoxyCodeLine{//=> \{\}}
\DoxyCodeLine{}
\DoxyCodeLine{console.log(obj.foo('bar'));}
\DoxyCodeLine{//=> 'BAR' }

\end{DoxyCode}


{\bfseries{get/set}}


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

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_base_node_modules_define_property_README_autotoc_md3808}{}\doxysection{About}\label{md_sfcode_node_modules_base_node_modules_define_property_README_autotoc_md3808}
\hypertarget{md_sfcode_node_modules_base_node_modules_define_property_README_autotoc_md3809}{}\doxysubsection{Related projects}\label{md_sfcode_node_modules_base_node_modules_define_property_README_autotoc_md3809}

\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_base_node_modules_define_property_README_autotoc_md3810}{}\doxysubsection{Contributing}\label{md_sfcode_node_modules_base_node_modules_define_property_README_autotoc_md3810}
Pull requests and stars are always welcome. For bugs and feature requests, \href{../../issues/new}{\texttt{ please create an issue}}.\hypertarget{md_sfcode_node_modules_base_node_modules_define_property_README_autotoc_md3811}{}\doxysubsection{Building docs}\label{md_sfcode_node_modules_base_node_modules_define_property_README_autotoc_md3811}
\+\_\+(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}
\hypertarget{md_sfcode_node_modules_base_node_modules_define_property_README_autotoc_md3812}{}\doxysubsection{Running tests}\label{md_sfcode_node_modules_base_node_modules_define_property_README_autotoc_md3812}
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}
\hypertarget{md_sfcode_node_modules_base_node_modules_define_property_README_autotoc_md3813}{}\doxysubsection{Author}\label{md_sfcode_node_modules_base_node_modules_define_property_README_autotoc_md3813}
{\bfseries{Jon Schlinkert}}


\begin{DoxyItemize}
\item \href{https://github.com/jonschlinkert}{\texttt{ github/jonschlinkert}}
\item \href{https://twitter.com/jonschlinkert}{\texttt{ twitter/jonschlinkert}}
\end{DoxyItemize}\hypertarget{md_sfcode_node_modules_base_node_modules_define_property_README_autotoc_md3814}{}\doxysubsection{License}\label{md_sfcode_node_modules_base_node_modules_define_property_README_autotoc_md3814}
Copyright © 2017, \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.\+5.\+0, on April 20, 2017.} 