Javascript String underscore_to_camel()

Description

Javascript String underscore_to_camel()


String.prototype.underscore_to_camel = function() {
  return this.replace(/_[a-z]/, function(m){ return m.substring(1).toUpperCase(); })
}



PreviousNext

Related