UNPKG

540 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.isDigit = exports.isDigitStart = void 0;
4/**
5 * Checks if the character is or belongs to a number.
6 * [0-9]|+|-|.
7 */
8function isDigitStart(code) {
9 return ((code >= 48 && code <= 57) /* 0..9 */ || code === 0x2b /* + */ || code === 0x2d /* - */ || code === 0x2e); /* . */
10}
11exports.isDigitStart = isDigitStart;
12function isDigit(code) {
13 return code >= 48 && code <= 57; // 0..9
14}
15exports.isDigit = isDigit;
16//# sourceMappingURL=is-digit-start.js.map
\No newline at end of file