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

3 lines
78 B
JavaScript
Raw Normal View History

2010-07-29 04:51:35 +00:00
String.prototype.dasherize = function() {
return this.replace(/_/g, "-");
};