isNumeric

Extension function to check if a string is numeric.

Receiver

The string to be checked.

Return

true if the string contains only digits, false otherwise.