MCPcopy Index your code
hub / github.com/stemkoski/stemkoski.github.com / isNumber

Function isNumber

MathBox/mathbox-bundle.js:37622–37625  ·  view source on GitHub ↗

* Checks if `value` is a number. * * Note: `NaN` is considered a number. See http://es5.github.io/#x8.5. * * @static * @memberOf _ * @category Objects * @param {*} value The value to check. * @returns {boolean} Returns `true` if the `value` is a number, else `

(value)

Source from the content-addressed store, hash-verified

37620 * // => true
37621 */
37622 function isNumber(value) {
37623 return typeof value == 'number' ||
37624 value && typeof value == 'object' && toString.call(value) == numberClass || false;
37625 }
37626
37627 /**
37628 * Checks if `value` is an object created by the `Object` constructor.

Callers 2

isNaNFunction · 0.70
mathbox-bundle.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected