MCPcopy Index your code
hub / github.com/autoNumeric/autoNumeric / isDigit

Method isDigit

src/AutoNumericHelper.js:164–166  ·  view source on GitHub ↗

* Return `true` if the given character is a number (0 to 9) * * @param {char} char * @returns {boolean}

(char)

Source from the content-addressed store, hash-verified

162 * @returns {boolean}
163 */
164 static isDigit(char) {
165 return /\d/.test(char);
166 }
167
168 /**
169 * Return `true` if the parameter is a number (or a number written as a string).

Callers 2

getNextTokenMethod · 0.80
_getNumberMethod · 0.80

Calls 1

testMethod · 0.80

Tested by

no test coverage detected