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

3 lines
48 B
CoffeeScript

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