is_digit static method

bool is_digit(
  1. String c
)

Is the given char a digit ?

Implementation

static bool is_digit(String c) {
  return '0123456789'.contains(c);
}