I have the following javascript:
Function.prototype.debounce = function (threshold, execAsap) {
var func = this, timeout;
return function debounced () {
//body
}
};
How can I return a named function like this in coffeescript?