diff --git a/module/curry.js b/module/curry.js index 562a282..4e14c6d 100644 --- a/module/curry.js +++ b/module/curry.js @@ -21,7 +21,7 @@ export default ({ placeholder }) => { function curry(...initialArgs) { const fn = this; - const len = containsPlaceholder(initialArgs) ? initialArgs.length : fn.length; + const len = containsPlaceholder(initialArgs) ? Math.max(fn.length, initialArgs.length) : fn.length; const _curry = (...args) => { const f = (...newArgs) => {