mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-01-15 01:38:13 -05:00
3 lines
78 B
JavaScript
3 lines
78 B
JavaScript
String.prototype.dasherize = function() {
|
|
return this.replace(/_/g, "-");
|
|
}; |