Currying in JavaScript
Kevin Ennis
16510

function curry(fn) {
 var arity = fn.length;
 var memory = [];
 return function resolver() {
 var args = Array.prototype.slice.call(arguments), next;
 memory = memory.concat(args);
 return memory.length >= arity ? fn.apply(fn, memory) : resolver;
 }
}

is it ok to write like ?

Show your support

Clapping shows how much you appreciated Лерка Облигация’s story.