MCPcopy Create free account
hub / github.com/denoland/std / isDigit

Function isDigit

http/unstable_structured_fields.ts:455–458  ·  view source on GitHub ↗

Check if character is a digit (0-9)

(c: string)

Source from the content-addressed store, hash-verified

453
454/** Check if character is a digit (0-9) */
455function 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) */
461function isLcalpha(c: string): boolean {

Callers 3

isKeyCharFunction · 0.85
parseBareItemFunction · 0.85
parseIntegerOrDecimalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected