Nodejs String Dasherize dasherize()

Here you can find the source of dasherize()

Method Source Code

// Generated by CoffeeScript 1.6.3
String.prototype.dasherize = function() {
  return this.replace(/_/g, "-");
};

Related

  1. dasherize()
    String.prototype.dasherize = function() {
      return this.replace(/_/g, "-");
    };
    
  2. dasherize()
    String.prototype.dasherize = function() {
      return this.gsub(/_/,'-');
    };
    
  3. dasherize()
    String.prototype.dasherize = function() {
      return this.replace(/_/g, '-');
    };
    
  4. dasherize()
    String.prototype.dasherize = function() {
      return this.replace(/_/g, "-");
    };
    
  5. dasherize()
    String.prototype.dasherize = function() {
      return this.replace(/_/g, '-');
    };