\href{https://travis-ci.org/ljharb/is-callable}{\texttt{ }} \href{https://david-dm.org/ljharb/is-callable}{\texttt{ }} \href{https://david-dm.org/ljharb/is-callable\#info=devDependencies}{\texttt{ }} \mbox{[}\mbox{]}\mbox{[}license-\/url\mbox{]} \href{http://npm-stat.com/charts.html?package=is-callable}{\texttt{ }}

\href{https://npmjs.org/package/is-callable}{\texttt{ }}

\href{https://ci.testling.com/ljharb/is-callable}{\texttt{ }}

Is this JS value callable? Works with Functions and Generator\+Functions, despite ES6 @to\+String\+Tag.\hypertarget{md_sfcode_node_modules_is_callable_README_autotoc_md12992}{}\doxysection{Example}\label{md_sfcode_node_modules_is_callable_README_autotoc_md12992}

\begin{DoxyCode}{0}
\DoxyCodeLine{var isCallable = require('is-\/callable');}
\DoxyCodeLine{var assert = require('assert');}
\DoxyCodeLine{}
\DoxyCodeLine{assert.notOk(isCallable(undefined));}
\DoxyCodeLine{assert.notOk(isCallable(null));}
\DoxyCodeLine{assert.notOk(isCallable(false));}
\DoxyCodeLine{assert.notOk(isCallable(true));}
\DoxyCodeLine{assert.notOk(isCallable([]));}
\DoxyCodeLine{assert.notOk(isCallable(\{\}));}
\DoxyCodeLine{assert.notOk(isCallable(/a/g));}
\DoxyCodeLine{assert.notOk(isCallable(new RegExp('a', 'g')));}
\DoxyCodeLine{assert.notOk(isCallable(new Date()));}
\DoxyCodeLine{assert.notOk(isCallable(42));}
\DoxyCodeLine{assert.notOk(isCallable(NaN));}
\DoxyCodeLine{assert.notOk(isCallable(Infinity));}
\DoxyCodeLine{assert.notOk(isCallable(new Number(42)));}
\DoxyCodeLine{assert.notOk(isCallable('foo'));}
\DoxyCodeLine{assert.notOk(isCallable(Object('foo')));}
\DoxyCodeLine{}
\DoxyCodeLine{assert.ok(isCallable(function () \{\}));}
\DoxyCodeLine{assert.ok(isCallable(function* () \{\}));}
\DoxyCodeLine{assert.ok(isCallable(x => x * x)); }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_is_callable_README_autotoc_md12993}{}\doxysection{Install}\label{md_sfcode_node_modules_is_callable_README_autotoc_md12993}
Install with


\begin{DoxyCode}{0}
\DoxyCodeLine{npm install is-\/callable }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_is_callable_README_autotoc_md12994}{}\doxysection{Tests}\label{md_sfcode_node_modules_is_callable_README_autotoc_md12994}
Simply clone the repo, {\ttfamily npm install}, and run {\ttfamily npm test} 