MCPcopy
hub / github.com/autoNumeric/autoNumeric / isNumberOrArabic

Method isNumberOrArabic

src/AutoNumericHelper.js:175–178  ·  view source on GitHub ↗

* Return `true` if the parameter is a number (or a number written as a string). * This version also accepts Arabic and Persian numbers. * * @param {*} n * @returns {boolean}

(n)

Source from the content-addressed store, hash-verified

173 * @returns {boolean}
174 */
175 static isNumberOrArabic(n) {
176 const latinConvertedNumber = this.arabicToLatinNumbers(n, false, true, true);
177 return this.isNumber(latinConvertedNumber);
178 }
179
180 /**
181 * Return `true` if the parameter is an integer (and not a float).

Callers 1

_setArgumentsValuesMethod · 0.80

Calls 2

arabicToLatinNumbersMethod · 0.95
isNumberMethod · 0.95

Tested by

no test coverage detected