← go back
String.prototype.isUpperCase = function() {
  if (!/^[a-zA-Z]+$/.test(this.toString())) return false;
  return this.toString() === this.toUpperCase()
}
String.prototype.isLowerCase = function() {
  if (!/^[a-zA-Z]+$/.test(this.toString())) return false;
  return this.toString() === this.toLowerCase()
}

helpful. thought id send it

Feb 17, 2023, 5:05 PM
1 0 0

Comments