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