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

5 lines
80 B
JavaScript

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