MCPcopy Create free account
hub / github.com/dailydotdev/apps / checkIsNumbersOnly

Function checkIsNumbersOnly

packages/shared/src/lib/numberFormat.ts:55–56  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

53};
54
55export const checkIsNumbersOnly = (value: string): boolean =>
56 /^\d+$/.test(value);
57
58export const formatDataTileValue = (value: number): string => {
59 if (typeof value !== 'number' || !Number.isFinite(value)) {

Callers 2

onPasteFunction · 0.90
onKeyDownFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected