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


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

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_class_utils_node_modules_define_property_README_autotoc_md5144}{}\doxysection{Usage}\label{md_sfcode_node_modules_class_utils_node_modules_define_property_README_autotoc_md5144}
{\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_class_utils_node_modules_define_property_README_autotoc_md5145}{}\doxysection{Related projects}\label{md_sfcode_node_modules_class_utils_node_modules_define_property_README_autotoc_md5145}

\begin{DoxyItemize}
\item \href{https://www.npmjs.com/package/delegate-object}{\texttt{ delegate-\/object}}\+: Copy properties from an object to another object, where properties with function values will be… \href{https://www.npmjs.com/package/delegate-object}{\texttt{ more}} $\vert$ \href{https://github.com/doowb/delegate-object}{\texttt{ homepage}}
\item \href{https://www.npmjs.com/package/forward-object}{\texttt{ forward-\/object}}\+: Copy properties from an object to another object, where properties with function values will be… \href{https://www.npmjs.com/package/forward-object}{\texttt{ more}} $\vert$ \href{https://github.com/doowb/forward-object}{\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}}
\item \href{https://www.npmjs.com/package/mixin-object}{\texttt{ mixin-\/object}}\+: Mixin the own and inherited properties of other objects onto the first object. Pass an… \href{https://www.npmjs.com/package/mixin-object}{\texttt{ more}} $\vert$ \href{https://github.com/jonschlinkert/mixin-object}{\texttt{ homepage}}
\end{DoxyItemize}\hypertarget{md_sfcode_node_modules_class_utils_node_modules_define_property_README_autotoc_md5146}{}\doxysection{Running tests}\label{md_sfcode_node_modules_class_utils_node_modules_define_property_README_autotoc_md5146}
Install dev dependencies\+:


\begin{DoxyCode}{0}
\DoxyCodeLine{\$ npm i -\/d \&\& npm test }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_class_utils_node_modules_define_property_README_autotoc_md5147}{}\doxysection{Contributing}\label{md_sfcode_node_modules_class_utils_node_modules_define_property_README_autotoc_md5147}
Pull requests and stars are always welcome. For bugs and feature requests, \href{https://github.com/jonschlinkert/define-property/issues/new}{\texttt{ please create an issue}}.\hypertarget{md_sfcode_node_modules_class_utils_node_modules_define_property_README_autotoc_md5148}{}\doxysection{Author}\label{md_sfcode_node_modules_class_utils_node_modules_define_property_README_autotoc_md5148}
{\bfseries{Jon Schlinkert}}


\begin{DoxyItemize}
\item \href{https://github.com/jonschlinkert}{\texttt{ github/jonschlinkert}}
\item \href{http://twitter.com/jonschlinkert}{\texttt{ twitter/jonschlinkert}}
\end{DoxyItemize}\hypertarget{md_sfcode_node_modules_class_utils_node_modules_define_property_README_autotoc_md5149}{}\doxysection{License}\label{md_sfcode_node_modules_class_utils_node_modules_define_property_README_autotoc_md5149}
Copyright © 2015 Jon Schlinkert Released under the MIT license.

\DoxyHorRuler{0}


{\itshape This file was generated by \href{https://github.com/assemble/verb-cli}{\texttt{ verb-\/cli}} on August 31, 2015.} 