const sum = (a,b,c) => {
    return a + b + c
}

function currifySum(func){
   
  return function currify(...args){
      return args.length === func.length ? func.call(this, ...args):currify.bind(this, ...args)
  }
}

const curriedSum = currifySum(sum)
console.log(curriedSum(2,3)(4))

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: