Node.js examples for String:String Value
Dasherize String
if (!String.prototype.dasherize) { String.prototype.dasherize = function() { return this/* www .j a v a 2 s.com*/ .replace(/([a-z])([A-Z])/g, '$1-$2') .replace(/[ _-]+/g, '-') .toLowerCase(); }; }