MCPcopy Create free account
hub / github.com/glideapps/quicktype / isDigit

Function isDigit

src/Strings.ts:218–221  ·  view source on GitHub ↗
(codePoint: number)

Source from the content-addressed store, hash-verified

216}
217
218export function isDigit(codePoint: number): boolean {
219 const category = unicode.getCategory(codePoint);
220 return ["Nd"].indexOf(category) >= 0;
221}
222
223export function isNumeric(codePoint: number): boolean {
224 const category = unicode.getCategory(codePoint);

Callers 5

isPartCharacterFunction · 0.90
isStartCharacterFunction · 0.90
isWordCharacterFunction · 0.85
splitIntoWordsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…