Like _.partial, but partially applied arguments are appended after the ones you pass later. Freeze trailing parameters while leaving leading slots open. Part of Lodash 4.x Function.
Note: This method doesn’t set the length property of partially applied functions.
Syntax
Call _.partialRight. Start with this line.
Lodash
_.partialRight(func, [partials])
Call
What it does
_.partialRight(func, [partials])
Primary signature.
_.partialRight(func)
Wrap or transform a function.
Prefer import partialRight from "lodash/partialRight" when you want a smaller bundle.
Use. Shared suffixes for files, locales, or route builders.
Compatibility
Browser & Runtime Support
_.partialRight is a long-standing Lodash 4.x Function helper. It runs anywhere Lodash runs — modern browsers (via CDN or bundle) and Node.js / Bun / Deno with npm install lodash.
✓ Stable · Lodash 4.x
_.partialRight()
Available in [email protected] full builds and the lodash/partialRight 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
_.partialRightLodash 4.x
Bottom line: Safe for production once Lodash 4.x is on the page or in your bundle. Prefer import partialRight from "lodash/partialRight" for smaller builds. For leading arguments, use _.partial.
Frequently Asked Questions
_.partialRight(func, ...partials) returns a new function that invokes func with your partials appended after the arguments supplied at call time — so trailing parameters stay fixed.
_.partial prepends fixed values before caller arguments. _.partialRight appends them afterward. Choose based on which end of the parameter list you want to freeze.
A sentinel (defaults to _ in the full Lodash build) that marks a slot among the trailing partials to fill later from the call-site arguments.
No. It only handles argument partial application. Use _.bind when you need a fixed this.
No. Lodash notes that this method doesn't set the length property of partially applied functions — don't rely on wrapper.length for arity.
Use import partialRight from "lodash/partialRight" then partialRight.placeholder for deferred slots. Full build: import _ from "lodash" then _.partialRight.