utils.string.isNumeric

isNumeric(str: string) → {boolean}

returns true if the given string contains a numeric integer or float value

Parameters:
Name Type Description
str string

the string to be tested

Returns:
Type Description
boolean

true if string contains only digits

Powered by webdoc!