jashkenas--coffeescript/documentation/js/prototypes.js

6 lines
114 B
JavaScript

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