june_ — 2/17/2023, 5:05:39 PM
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

♥ 1 ↩ 0 💬 0 comments

comments

no comments