Skip to main content
Module

x/rambda/source/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, ])}