\begin{quote}
Returns true if a value has the characteristics of a valid Java\+Script accessor descriptor. \end{quote}

\begin{DoxyItemize}
\item \href{\#install}{\texttt{ Install}}
\item \href{\#usage}{\texttt{ Usage}}
\item \href{\#examples}{\texttt{ Examples}}
\item \href{\#api}{\texttt{ API}}
\item \href{\#related-projects}{\texttt{ Related projects}}
\item \href{\#running-tests}{\texttt{ Running tests}}
\item \href{\#contributing}{\texttt{ Contributing}}
\item \href{\#author}{\texttt{ Author}}
\item \href{\#license}{\texttt{ License}}
\end{DoxyItemize}

\+\_\+(TOC generated by \href{https://github.com/verbose/verb}{\texttt{ verb}} using \href{https://github.com/jonschlinkert/markdown-toc}{\texttt{ markdown-\/toc}})\+\_\+\hypertarget{md_sfcode_node_modules_is_accessor_descriptor_README_autotoc_md12948}{}\doxysection{Install}\label{md_sfcode_node_modules_is_accessor_descriptor_README_autotoc_md12948}
Install with \href{https://www.npmjs.com/}{\texttt{ npm}}\+:


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

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

\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_is_accessor_descriptor_README_autotoc_md12950}{}\doxysection{Examples}\label{md_sfcode_node_modules_is_accessor_descriptor_README_autotoc_md12950}
{\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_is_accessor_descriptor_README_autotoc_md12951}{}\doxysection{Related projects}\label{md_sfcode_node_modules_is_accessor_descriptor_README_autotoc_md12951}

\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://www.npmjs.com/package/is-descriptor}{\texttt{ more}} $\vert$ \href{https://github.com/jonschlinkert/is-descriptor}{\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_is_accessor_descriptor_README_autotoc_md12952}{}\doxysection{Running tests}\label{md_sfcode_node_modules_is_accessor_descriptor_README_autotoc_md12952}
Install dev dependencies\+:


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

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_is_accessor_descriptor_README_autotoc_md12953}{}\doxysection{Contributing}\label{md_sfcode_node_modules_is_accessor_descriptor_README_autotoc_md12953}
Pull requests and stars are always welcome. For bugs and feature requests, \href{https://github.com/jonschlinkert/is-accessor-descriptor/issues/new}{\texttt{ please create an issue}}.\hypertarget{md_sfcode_node_modules_is_accessor_descriptor_README_autotoc_md12954}{}\doxysection{Author}\label{md_sfcode_node_modules_is_accessor_descriptor_README_autotoc_md12954}
{\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_is_accessor_descriptor_README_autotoc_md12955}{}\doxysection{License}\label{md_sfcode_node_modules_is_accessor_descriptor_README_autotoc_md12955}
Copyright © 2015 \href{https://github.com/jonschlinkert}{\texttt{ Jon Schlinkert}} Released under the MIT license.

\DoxyHorRuler{0}


{\itshape This file was generated by \href{https://github.com/verbose/verb}{\texttt{ verb}} on December 28, 2015.} 