Skip to content

is_numeric

Checks if a string contains only numeric characters.

is_numeric(x:string) -> bool

The is_numeric function returns true if x contains only numeric characters and false otherwise.

from {x: "1234".is_numeric()}
{x: true}

is_alpha, is_alnum