JSFiddle - React, Tailwind, and code Playground
by nirus
JavaScript
const curry = (...arg) => {
arg.reduceRight((x, func)=>{
return func(x);
});
}
curry(1)(2)
by nirus
const curry = (...arg) => {
arg.reduceRight((x, func)=>{
return func(x);
});
}
curry(1)(2)