Skip to content
On this page
js
function curry(fn) {
  return function curried(...argu) {
    if(argu.length >= fn.length) {
      return fn.apply(null, argu)
    }
    return curried.bind(null, ...argu)
  }
}