MCPcopy
hub / github.com/KilledByAPixel/LittleJS / isNumber

Function isNumber

src/engineMath.js:293–293  ·  view source on GitHub ↗

* Check if object is a valid number, not NaN or undefined, but it may be infinite * @param {any} n * @return {boolean} * @memberof Math

(n)

Source from the content-addressed store, hash-verified

291 * @return {boolean}
292 * @memberof Math */
293function isNumber(n) { return typeof n === 'number' && !isNaN(n); }
294
295/**
296 * Check if a value is stringifiable — i.e. it has a toString that returns

Callers 15

util.test.mjsFile · 0.90
mouseIsDownFunction · 0.85
mouseWasPressedFunction · 0.85
mouseWasReleasedFunction · 0.85
gamepadIsDownFunction · 0.85
gamepadWasPressedFunction · 0.85
gamepadWasReleasedFunction · 0.85
gamepadStickFunction · 0.85
gamepadDpadFunction · 0.85
gamepadConnectedFunction · 0.85
gamepadStickCountFunction · 0.85
gamepadVibrateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected