Skip to main content
Module

x/rambda/curry.js

Faster and smaller alternative to Ramda
Go to Latest
File
export function curry(fn, args = []){ return (..._args) => (rest => rest.length >= fn.length ? fn(...rest) : curry(fn, rest))([ ...args, ..._args, ])}