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

Function isNumber

cli/parse_args.ts:438–440  ·  view source on GitHub ↗
(string: string)

Source from the content-addressed store, hash-verified

436const NON_WHITESPACE_REGEXP = /\S/;
437
438function isNumber(string: string): boolean {
439 return NON_WHITESPACE_REGEXP.test(string) && Number.isFinite(Number(string));
440}
441
442function isConstructorOrProto(obj: NestedMapping, key: string): boolean {
443 return (key === "constructor" && typeof obj[key] === "function") ||

Callers 2

setArgumentFunction · 0.85
parseArgsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected