/documentation/coffee/prototypes.coffee

http://github.com/jashkenas/coffee-script · CoffeeScript · 2 lines · 2 code · 0 blank · 0 comment · 0 complexity · 619ee70229628a8107eafcedbbbb6b8a MD5 · raw file

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