diff --git a/source/curry.js b/source/curry.js index 3ea9b8e..6a0678d 100644 --- a/source/curry.js +++ b/source/curry.js @@ -3,7 +3,7 @@ const curry = ( f, arr = [], length = f.length ) => (...args) => ( - a => a.length === length ? + a => a.length >= length ? f(...a) : curry(f, a) )([...arr, ...args]);