Lodash _.curryRight() Method

Beginner
5 min read
Updated: Nov 2026
5 examples
Function

Definition

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])
CallWhat 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

ParameterDescription
funcRequired. Function to curry
arityOptional. Expected arg count; default func.length

Return Value

Return ValueDescription
*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]
Try It Yourself

How It Works

  1. Wrap. curryRight reads arity 3 from abc.length.
  2. First call. 3 binds the rightmost slot c.
  3. Next. 2 binds b; 1 binds a.
  4. Run. All slots filled → abc(1, 2, 3).

Example 2 — Official: Two Args, Then One

Pass several trailing values together.

Lodash
function abc(a, b, c) {
  return [a, b, c];
}

var curried = _.curryRight(abc);

curried(2, 3)(1);
// → [1, 2, 3]
Try It Yourself

How It Works

  1. Batch. (2, 3) fills b and c from the right.
  2. Remain. Only a is open.
  3. Finish. (1) supplies a and invokes abc.
  4. Same result. Still [1, 2, 3].

Example 3 — Official: All Arguments at Once

When you pass a full set, it runs immediately.

Lodash
function abc(a, b, c) {
  return [a, b, c];
}

var curried = _.curryRight(abc);

curried(1, 2, 3);
// → [1, 2, 3]
Try It Yourself

How It Works

  1. Arity met. Three args for a 3-arity function.
  2. Order. Values map to a, b, c in left-to-right order.
  3. No wait. No intermediate curried return.
  4. 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]
Try It Yourself

How It Works

  1. First. (3) binds c.
  2. Second. (1, _) sets a = 1 and leaves b open.
  3. Third. (2) fills b.
  4. Modular. With lodash/curryRight, use curryRight.placeholder.

Example 5 — curryRight vs curry

Same function, opposite fill directions.

Lodash
function abc(a, b, c) {
  return [a, b, c];
}

_.curryRight(abc)(3)(2)(1);
// → [1, 2, 3]   // first call binds c

_.curry(abc)(1)(2)(3);
// → [1, 2, 3]   // first call binds a
Try It Yourself

How It Works

  1. Right. curryRight wants the last parameter first.
  2. Left. curry wants the first parameter first.
  3. Result. Final abc args can match; call order differs.
  4. Choose. Prefer right when trailing config is known earliest.

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 Chrome Supported · Desktop & Mobile
Full support
Mozilla Firefox Supported · Desktop & Mobile
Full support
Apple Safari Supported · macOS & iOS
Full support
Microsoft Edge Supported · Chromium
Full support
Internet Explorer No native support · Use a polyfill
Polyfill
Opera Supported · Modern versions
Full support
Samsung Internet Supported · Android
Full support
Bun Supported · JavaScript runtime
Supported
Deno Supported · JavaScript runtime
Supported
Node.js Supported · Server runtime
Supported
Android WebView Supported · Modern WebView
Full support
_.curryRight Lodash 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.

Next: _.debounce()

Delay invoking a function until calls quiet down.

_.debounce() tutorial →

About the author

Mari Selvan M P
Mari Selvan M P 🔗

Developer, cloud engineer, and technical writer

  • Experience 12 years building web and cloud systems
  • Focus Full Stack Development, AWS, and Developer Education

I write practical tutorials so students and working developers can learn by doing—from databases and APIs to deployment on AWS.

9 people found this page helpful