UNPKG

foreword

Version:

A JavaScript library for functional data transformation

12 lines (9 loc) 185 B
function curry (n, f, ...args) { if (n <= 0) { return f(...args) } return (...rest) => { return curry(n - rest.length, f, ...args, ...rest) } } module.exports = curry