3 ms·
Yet another JavaScript 'overload' function (written in LiveScript)
- naturalethic 13y agoIn javascript you would call this like: var myfunc = overload([ { type: 'String', properties: 'Object', next: 'Function' }, { type: 'String', next: 'Function' }, function(type, properties, next) { ... }]);