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

3 lines
78 B
JavaScript

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