JSFiddle - React, Tailwind, and code Playground

by cmruser

JavaScript

const curry = function(fn) {
	console.log(fn.length);
  return function f1(...args) {
  	console.log(args);
    return f1(...);
  }
}

const sum = curry((a,b) => a + b);
sum();