jashkenas--coffeescript/documentation/examples/breaking_change_function_pa...

4 lines
83 B
CoffeeScript

f = (a = 1) -> a
f(null) # Returns 1 in CoffeeScript 1.x, null in CoffeeScript 2