Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
55
export
const
checkIsNumbersOnly = (value: string): boolean =>
56
/^\d+$/.test(value);
57
58
export
const
formatDataTileValue = (value: number): string => {
59
if
(typeof value !==
'number'
|| !Number.isFinite(value)) {
Callers
2
onPaste
Function · 0.90
onKeyDown
Function · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected