How do I create a named function expressions in CoffeeScript like the examples below?
var a = function b (param1) {}
or
return function link (scope) {}
How do I create a named function expressions in CoffeeScript like the examples below?
var a = function b (param1) {}
or
return function link (scope) {}
Coffeescript doesn't support the latter (named functions), but the former can be achieved with
I may be a bit late to the party, but I just realised that you actually create named functions when using the
class
keyword.Example: