Javascript String humpToHyphen()

Description

Javascript String humpToHyphen()


String.prototype.humpToHyphen = function () {
  return this.replace(/([A-Z])/g, "-$1").toLowerCase()
}



PreviousNext

Related