Javascript String toLower()

Description

Javascript String toLower()

String.prototype.toLower = function() {
  return this.replace(/[A-Z]/g, (x) => String.fromCharCode(x.charCodeAt(0) + 32));
};



PreviousNext

Related