let curring = (fn, ...args) => {
return fn.length> args.length? (...arguments) => curring(fn, ...args, ...arguments): fn(...args)
}
let addSum = (a,b,c)=> a+b+c
let add = curring(addSum)
console.log(add(1)(2)(3))
console.log(add(1)(2,3))
console.log(add(1,2,3))