MCPcopy Create free account
hub / github.com/Effect-TS/effect / isDigit

Function isDigit

packages/effect/src/internal/jsonParser.ts:6–6  ·  view source on GitHub ↗
(code: number)

Source from the content-addressed store, hash-verified

4const idName = /[$_\p{ID_Start}][$\u200C\u200D\p{ID_Continue}]*/uy
5const hexDigits = /[\da-fA-F]*/y
6const isDigit = (code: number) => code >= 0x30 && code <= 0x39
7const isAsciiIdPart = (code: number) =>
8 (code >= 0x61 && code <= 0x7a) || (code >= 0x41 && code <= 0x5a) || isDigit(code) || code === 0x5f || code === 0x24
9

Callers 6

isAsciiIdPartFunction · 0.70
hexFunction · 0.70
numberFunction · 0.70
stringFunction · 0.70
identifierFunction · 0.70
valueFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected