Yet another JavaScript 'overload' function (written in LiveScript)
gist.github.com
gist.github.com
var myfunc = overload([
{ type: 'String', properties: 'Object', next: 'Function' },
{ type: 'String', next: 'Function' },
function(type, properties, next) { ... }]);