{\bfseries{Contributing}}

\begin{quote}
Returns true if a value has the characteristics of a valid Java\+Script accessor descriptor. \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_base_node_modules_is_accessor_descriptor_README_autotoc_md3816}{}\doxysection{Install}\label{md_sfcode_node_modules_base_node_modules_is_accessor_descriptor_README_autotoc_md3816}
Install with \href{https://www.npmjs.com/}{\texttt{ npm}}\+:


\begin{DoxyCode}{0}
\DoxyCodeLine{\$ npm install -\/-\/save is-\/accessor-\/descriptor }

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

\begin{DoxyCode}{0}
\DoxyCodeLine{var isAccessor = require('is-\/accessor-\/descriptor');}
\DoxyCodeLine{}
\DoxyCodeLine{isAccessor(\{get: function() \{\}\});}
\DoxyCodeLine{//=> true }

\end{DoxyCode}


You may also pass an object and property name to check if the property is an accessor\+:


\begin{DoxyCode}{0}
\DoxyCodeLine{isAccessor(foo, 'bar'); }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_base_node_modules_is_accessor_descriptor_README_autotoc_md3818}{}\doxysection{Examples}\label{md_sfcode_node_modules_base_node_modules_is_accessor_descriptor_README_autotoc_md3818}
{\ttfamily false} when not an object


\begin{DoxyCode}{0}
\DoxyCodeLine{isAccessor('a')}
\DoxyCodeLine{isAccessor(null)}
\DoxyCodeLine{isAccessor([])}
\DoxyCodeLine{//=> false }

\end{DoxyCode}


{\ttfamily true} when the object has valid properties

and the properties all have the correct Java\+Script types\+:


\begin{DoxyCode}{0}
\DoxyCodeLine{isAccessor(\{get: noop, set: noop\})}
\DoxyCodeLine{isAccessor(\{get: noop\})}
\DoxyCodeLine{isAccessor(\{set: noop\})}
\DoxyCodeLine{//=> true }

\end{DoxyCode}


{\ttfamily false} when the object has invalid properties


\begin{DoxyCode}{0}
\DoxyCodeLine{isAccessor(\{get: noop, set: noop, bar: 'baz'\})}
\DoxyCodeLine{isAccessor(\{get: noop, writable: true\})}
\DoxyCodeLine{isAccessor(\{get: noop, value: true\})}
\DoxyCodeLine{//=> false }

\end{DoxyCode}


{\ttfamily false} when an accessor is not a function


\begin{DoxyCode}{0}
\DoxyCodeLine{isAccessor(\{get: noop, set: 'baz'\})}
\DoxyCodeLine{isAccessor(\{get: 'foo', set: noop\})}
\DoxyCodeLine{isAccessor(\{get: 'foo', bar: 'baz'\})}
\DoxyCodeLine{isAccessor(\{get: 'foo', set: 'baz'\})}
\DoxyCodeLine{//=> false }

\end{DoxyCode}


{\ttfamily false} when a value is not the correct type


\begin{DoxyCode}{0}
\DoxyCodeLine{isAccessor(\{get: noop, set: noop, enumerable: 'foo'\})}
\DoxyCodeLine{isAccessor(\{set: noop, configurable: 'foo'\})}
\DoxyCodeLine{isAccessor(\{get: noop, configurable: 'foo'\})}
\DoxyCodeLine{//=> false }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_base_node_modules_is_accessor_descriptor_README_autotoc_md3819}{}\doxysection{About}\label{md_sfcode_node_modules_base_node_modules_is_accessor_descriptor_README_autotoc_md3819}
$<$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_base_node_modules_is_accessor_descriptor_README_autotoc_md3820}{}\doxysubsection{Related projects}\label{md_sfcode_node_modules_base_node_modules_is_accessor_descriptor_README_autotoc_md3820}
You might also be interested in these projects\+:


\begin{DoxyItemize}
\item \href{https://www.npmjs.com/package/is-accessor-descriptor}{\texttt{ is-\/accessor-\/descriptor}}\+: Returns true if a value has the characteristics of a valid Java\+Script accessor descriptor. $\vert$ \href{https://github.com/jonschlinkert/is-accessor-descriptor}{\texttt{ homepage}}
\item \href{https://www.npmjs.com/package/is-data-descriptor}{\texttt{ is-\/data-\/descriptor}}\+: Returns true if a value has the characteristics of a valid Java\+Script data descriptor. $\vert$ \href{https://github.com/jonschlinkert/is-data-descriptor}{\texttt{ homepage}}
\item \href{https://www.npmjs.com/package/is-descriptor}{\texttt{ is-\/descriptor}}\+: Returns true if a value has the characteristics of a valid Java\+Script descriptor. Works for… \href{https://github.com/jonschlinkert/is-descriptor}{\texttt{ more}} $\vert$ \href{https://github.com/jonschlinkert/is-descriptor}{\texttt{ homepage}}
\item \href{https://www.npmjs.com/package/is-plain-object}{\texttt{ is-\/plain-\/object}}\+: Returns true if an object was created by the {\ttfamily Object} constructor. $\vert$ \href{https://github.com/jonschlinkert/is-plain-object}{\texttt{ homepage}}
\item \href{https://www.npmjs.com/package/isobject}{\texttt{ isobject}}\+: Returns true if the value is an object and not an array or null. $\vert$ \href{https://github.com/jonschlinkert/isobject}{\texttt{ homepage}}
\end{DoxyItemize}\hypertarget{md_sfcode_node_modules_base_node_modules_is_accessor_descriptor_README_autotoc_md3821}{}\doxysubsection{Contributors}\label{md_sfcode_node_modules_base_node_modules_is_accessor_descriptor_README_autotoc_md3821}
\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
22   &\href{https://github.com/jonschlinkert}{\texttt{ jonschlinkert}}    \\\cline{1-2}
2   &\href{https://github.com/realityking}{\texttt{ realityking}}   \\\cline{1-2}
\end{longtabu}
\hypertarget{md_sfcode_node_modules_base_node_modules_is_accessor_descriptor_README_autotoc_md3822}{}\doxysubsection{Author}\label{md_sfcode_node_modules_base_node_modules_is_accessor_descriptor_README_autotoc_md3822}
{\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_is_accessor_descriptor_README_autotoc_md3823}{}\doxysubsection{License}\label{md_sfcode_node_modules_base_node_modules_is_accessor_descriptor_README_autotoc_md3823}
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.\+6.\+0, on November 01, 2017.} 