jashkenas--coffeescript/documentation/coffee/prototypes.coffee

2 lines
47 B
CoffeeScript

String::dasherize: ->
this.replace(/_/g, "-")