MCPcopy
hub / github.com/tdewolff/minify / isNumber

Function isNumber

_benchmarks/sample_victory.js:18341–18344  ·  view source on GitHub ↗

* Checks if `value` is classified as a `Number` primitive or object. * * **Note:** To exclude `Infinity`, `-Infinity`, and `NaN`, which are * classified as numbers, use the `_.isFinite` method. * * @static * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check.

(value)

Source from the content-addressed store, hash-verified

18339 * // => false
18340 */
18341function isNumber(value) {
18342 return typeof value == 'number' ||
18343 (isObjectLike(value) && baseGetTag(value) == numberTag);
18344}
18345
18346module.exports = isNumber;
18347

Callers 1

isNaNFunction · 0.70

Calls 2

baseGetTagFunction · 0.85
isObjectLikeFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…