\begin{quote}
Returns true if the value is a number. comprehensive tests. \end{quote}
\hypertarget{md_sfcode_node_modules_has_values_node_modules_is_number_README_autotoc_md11499}{}\doxysection{Install}\label{md_sfcode_node_modules_has_values_node_modules_is_number_README_autotoc_md11499}
Install with \href{https://www.npmjs.com/}{\texttt{ npm}}\+:


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

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_has_values_node_modules_is_number_README_autotoc_md11500}{}\doxysection{Usage}\label{md_sfcode_node_modules_has_values_node_modules_is_number_README_autotoc_md11500}
To understand some of the rationale behind the decisions made in this library (and to learn about some oddities of number evaluation in Java\+Script), \href{https://gist.github.com/jonschlinkert/e30c70c713da325d0e81}{\texttt{ see this gist}}.


\begin{DoxyCode}{0}
\DoxyCodeLine{var isNumber = require('is-\/number'); }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_has_values_node_modules_is_number_README_autotoc_md11501}{}\doxysubsection{true}\label{md_sfcode_node_modules_has_values_node_modules_is_number_README_autotoc_md11501}
See the \href{./test.js}{\texttt{ tests}} for more examples.


\begin{DoxyCode}{0}
\DoxyCodeLine{isNumber(5e3)      //=> 'true'}
\DoxyCodeLine{isNumber(0xff)     //=> 'true'}
\DoxyCodeLine{isNumber(-\/1.1)     //=> 'true'}
\DoxyCodeLine{isNumber(0)        //=> 'true'}
\DoxyCodeLine{isNumber(1)        //=> 'true'}
\DoxyCodeLine{isNumber(1.1)      //=> 'true'}
\DoxyCodeLine{isNumber(10)       //=> 'true'}
\DoxyCodeLine{isNumber(10.10)    //=> 'true'}
\DoxyCodeLine{isNumber(100)      //=> 'true'}
\DoxyCodeLine{isNumber('-\/1.1')   //=> 'true'}
\DoxyCodeLine{isNumber('0')      //=> 'true'}
\DoxyCodeLine{isNumber('012')    //=> 'true'}
\DoxyCodeLine{isNumber('0xff')   //=> 'true'}
\DoxyCodeLine{isNumber('1')      //=> 'true'}
\DoxyCodeLine{isNumber('1.1')    //=> 'true'}
\DoxyCodeLine{isNumber('10')     //=> 'true'}
\DoxyCodeLine{isNumber('10.10')  //=> 'true'}
\DoxyCodeLine{isNumber('100')    //=> 'true'}
\DoxyCodeLine{isNumber('5e3')    //=> 'true'}
\DoxyCodeLine{isNumber(parseInt('012'))   //=> 'true'}
\DoxyCodeLine{isNumber(parseFloat('012')) //=> 'true' }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_has_values_node_modules_is_number_README_autotoc_md11502}{}\doxysubsection{False}\label{md_sfcode_node_modules_has_values_node_modules_is_number_README_autotoc_md11502}
See the \href{./test.js}{\texttt{ tests}} for more examples.


\begin{DoxyCode}{0}
\DoxyCodeLine{isNumber('foo')             //=> 'false'}
\DoxyCodeLine{isNumber([1])               //=> 'false'}
\DoxyCodeLine{isNumber([])                //=> 'false'}
\DoxyCodeLine{isNumber(function () \{\})    //=> 'false'}
\DoxyCodeLine{isNumber(Infinity)          //=> 'false'}
\DoxyCodeLine{isNumber(NaN)               //=> 'false'}
\DoxyCodeLine{isNumber(new Array('abc'))  //=> 'false'}
\DoxyCodeLine{isNumber(new Array(2))      //=> 'false'}
\DoxyCodeLine{isNumber(new Buffer('abc')) //=> 'false'}
\DoxyCodeLine{isNumber(null)              //=> 'false'}
\DoxyCodeLine{isNumber(undefined)         //=> 'false'}
\DoxyCodeLine{isNumber(\{abc: 'abc'\})      //=> 'false' }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_has_values_node_modules_is_number_README_autotoc_md11503}{}\doxysection{About}\label{md_sfcode_node_modules_has_values_node_modules_is_number_README_autotoc_md11503}
\hypertarget{md_sfcode_node_modules_has_values_node_modules_is_number_README_autotoc_md11504}{}\doxysubsection{Related projects}\label{md_sfcode_node_modules_has_values_node_modules_is_number_README_autotoc_md11504}

\begin{DoxyItemize}
\item \href{https://www.npmjs.com/package/even}{\texttt{ even}}\+: Get the even numbered items from an array. $\vert$ \href{https://github.com/jonschlinkert/even}{\texttt{ homepage}}
\item \href{https://www.npmjs.com/package/is-even}{\texttt{ is-\/even}}\+: Return true if the given number is even. $\vert$ \href{https://github.com/jonschlinkert/is-even}{\texttt{ homepage}}
\item \href{https://www.npmjs.com/package/is-odd}{\texttt{ is-\/odd}}\+: Returns true if the given number is odd. $\vert$ \href{https://github.com/jonschlinkert/is-odd}{\texttt{ homepage}}
\item \href{https://www.npmjs.com/package/is-primitive}{\texttt{ is-\/primitive}}\+: Returns {\ttfamily true} if the value is a primitive. $\vert$ \href{https://github.com/jonschlinkert/is-primitive}{\texttt{ homepage}}
\item \href{https://www.npmjs.com/package/kind-of}{\texttt{ kind-\/of}}\+: Get the native type of a value. $\vert$ \href{https://github.com/jonschlinkert/kind-of}{\texttt{ homepage}}
\item \href{https://www.npmjs.com/package/odd}{\texttt{ odd}}\+: Get the odd numbered items from an array. $\vert$ \href{https://github.com/jonschlinkert/odd}{\texttt{ homepage}}
\end{DoxyItemize}\hypertarget{md_sfcode_node_modules_has_values_node_modules_is_number_README_autotoc_md11505}{}\doxysubsection{Contributing}\label{md_sfcode_node_modules_has_values_node_modules_is_number_README_autotoc_md11505}
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_has_values_node_modules_is_number_README_autotoc_md11506}{}\doxysubsection{Building docs}\label{md_sfcode_node_modules_has_values_node_modules_is_number_README_autotoc_md11506}
\+\_\+(This document was generated by \href{https://github.com/verbose/verb-generate-readme}{\texttt{ verb-\/generate-\/readme}} (a \href{https://github.com/verbose/verb}{\texttt{ verb}} generator), please don\textquotesingle{}t edit the readme directly. Any changes to the readme must be made in .verb.md.)\+\_\+

To generate the readme and API documentation with \href{https://github.com/verbose/verb}{\texttt{ verb}}\+:


\begin{DoxyCode}{0}
\DoxyCodeLine{\$ npm install -\/g verb verb-\/generate-\/readme \&\& verb }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_has_values_node_modules_is_number_README_autotoc_md11507}{}\doxysubsection{Running tests}\label{md_sfcode_node_modules_has_values_node_modules_is_number_README_autotoc_md11507}
Install dev dependencies\+:


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

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_has_values_node_modules_is_number_README_autotoc_md11508}{}\doxysubsection{Author}\label{md_sfcode_node_modules_has_values_node_modules_is_number_README_autotoc_md11508}
{\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_has_values_node_modules_is_number_README_autotoc_md11509}{}\doxysubsection{License}\label{md_sfcode_node_modules_has_values_node_modules_is_number_README_autotoc_md11509}
Copyright © 2016, \href{https://github.com/jonschlinkert}{\texttt{ Jon Schlinkert}}. Released under the \href{https://github.com/jonschlinkert/is-number/blob/master/LICENSE}{\texttt{ MIT license}}.

\DoxyHorRuler{0}


{\itshape This file was generated by \href{https://github.com/verbose/verb-generate-readme}{\texttt{ verb-\/generate-\/readme}}, v0.\+1.\+30, on September 10, 2016.} 