@tempots/std
isDigitsOnly() function
isDigitsOnly
returns true
if the string only contains digits.
Signature:
isDigitsOnly: (value: string) => boolean
Parameters
Parameter |
Type |
Description |
---|---|---|
value |
string |
The string to check. |
Returns: boolean
true
if the string contains only digits, false
otherwise.