MCPcopy
hub / github.com/josdejong/mathjs / isNumber

Function isNumber

tools/approx.js:11–13  ·  view source on GitHub ↗

* Test whether a value is a number * @param {*} value * @returns {boolean}

(value)

Source from the content-addressed store, hash-verified

9 * @returns {boolean}
10 */
11function isNumber (value) {
12 return (value instanceof Number || typeof value === 'number')
13}
14
15/**
16 * Test whether two values are approximately equal. Tests whether the difference

Callers 3

is.test.jsFile · 0.90
approxEqualFunction · 0.70
mainNumber.test.jsFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…