MCPcopy
hub / github.com/autoNumeric/autoNumeric / isNumberStrict

Method isNumberStrict

src/AutoNumericHelper.js:144–146  ·  view source on GitHub ↗

* Return `true` if the parameter is a real number (and not a numeric string). * * @param {*} n * @returns {boolean}

(n)

Source from the content-addressed store, hash-verified

142 * @returns {boolean}
143 */
144 static isNumberStrict(n) {
145 return typeof n === 'number';
146 }
147
148 /**
149 * Return `true` if the parameter is a number (or a number written as a string).

Callers 2

unformatMethod · 0.80
_toNumericValueMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected