/ Published in: JavaScript
From JavaScript Patterns
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function curry(fn) { var slice = Array.prototype.slice, stored_args = slice.call(arguments, 1); return function () { var new_args = slice.call(arguments), args = stored_args.concat(new_args); return fn.apply(null, args); }; }
URL: curry