isUppercase function

bool isUppercase (
  1. String str
)

check if the string str is uppercase

Implementation

bool isUppercase(String str) {
  return str == str.toUpperCase();
}