Like _.curry, but arguments are applied from the right — the same idea as _.partialRight. Early calls bind trailing parameters; later calls fill the rest until arity is met. Part of Lodash 4.x Function.
Pass the required arguments shown below. Most helpers return a new function you call later.
Syntax
Call _.curryRight. Start with this line.
Lodash
_.curryRight(func, [arity=func.length])
Call
What it does
_.curryRight(func, [arity=func.length])
Primary signature.
_.curryRight(func)
Wrap or transform a function.
Prefer import curryRight from "lodash/curryRight" when you want a smaller bundle.
Library declarations
Lodash
_.curryRight(func, [arity=func.length])
Parameters
Parameter
Description
func
Required. Function to curry
arity
Optional. Expected arg count; default func.length
Return Value
Return Value
Description
*
New curried function
Lodash Examples
Example 1 — Official: One Arg at a Time
Supply c, then b, then a.
Lodash
function abc(a, b, c) {
return [a, b, c];
}
var curried = _.curryRight(abc);
curried(3)(2)(1);
// → [1, 2, 3]
Order. Values map to a, b, c in left-to-right order.
No wait. No intermediate curried return.
Tip. Currying still helps when you only have some args later.
Example 4 — Official: Placeholder
Skip a middle slot and fill it on the next call.
Lodash
function abc(a, b, c) {
return [a, b, c];
}
var curried = _.curryRight(abc);
// full Lodash build: _ is the placeholder
curried(3)(1, _)(2);
// → [1, 2, 3]
Result. Final abc args can match; call order differs.
Choose. Prefer right when trailing config is known earliest.
Compatibility
Browser & Runtime Support
_.curryRight is a Lodash 4.x Function helper. It runs anywhere Lodash runs — modern browsers (CDN or bundle) and Node.js / Bun / Deno with npm install lodash. There is no single native curryRight — hand-roll partial application or use Lodash.
✓ Stable · Lodash 4.x
_.curryRight()
Available in [email protected] full builds and the lodash/curryRight modular import. Works in evergreen browsers and current Node LTS when Lodash is installed.
100%With Lodash 4.x
Google ChromeSupported · Desktop & Mobile
Full support
Mozilla FirefoxSupported · Desktop & Mobile
Full support
Apple SafariSupported · macOS & iOS
Full support
Microsoft EdgeSupported · Chromium
Full support
Internet ExplorerNo native support · Use a polyfill
Polyfill
OperaSupported · Modern versions
Full support
Samsung InternetSupported · Android
Full support
BunSupported · JavaScript runtime
Supported
DenoSupported · JavaScript runtime
Supported
Node.jsSupported · Server runtime
Supported
Android WebViewSupported · Modern WebView
Full support
_.curryRightLodash 4.x+
Bottom line: Safe for production once Lodash is loaded. Prefer import curryRight from "lodash/curryRight" for smaller builds. Use when trailing arguments are known first.
Frequently Asked Questions
_.curryRight(func, arity) returns a curried function that applies arguments from the right — like partialRight — until enough args are provided to call func.
_.curry fills left-to-right (like partial). _.curryRight fills right-to-left (like partialRight). First calls bind the trailing parameters.
Yes. Lodash merges argument batches across calls until arity is satisfied.
A sentinel (defaults to _ in full builds) that skips a slot so you can fill it in a later call.
No. Lodash documents that curryRight does not set the length property of curried functions.
When func.length is 0 or unreliable (rest params, defaults). Pass the expected argument count explicitly.