Check if character is a digit (0-9)
(c: string)
| 453 | |
| 454 | /** Check if character is a digit (0-9) */ |
| 455 | function isDigit(c: string): boolean { |
| 456 | const code = c.charCodeAt(0); |
| 457 | return code >= CHAR_CODE_0 && code <= CHAR_CODE_9; |
| 458 | } |
| 459 | |
| 460 | /** Check if character is lowercase alphabetic (a-z) */ |
| 461 | function isLcalpha(c: string): boolean { |
no outgoing calls
no test coverage detected