Last Updated : 15 Jul, 2025
Lodash _.partialRight() method is used to create a function that invokes the given func function with the appended partials to the arguments it receives. It is almost the same as the _.partial() function.
Syntax:_.partialRight(func, partials);Parameters:
Example 1: In this example, we are passing a string partially to the function by the use of the lodash _.partialRight() method.
JavaScript
// Requiring the lodash library
const _ = require("lodash");
// Given Function
function info(information, name) {
console.log(information + ' ' + name);
}
// Using the _.partialRight() method
let call_gfg =
_.partialRight(info,
'is a computer science portal');
call_gfg('GeeksforGeeks');
Output:
'GeeksforGeeks is a computer science portal'
Example 2: In this example, we are passing a string partially to the function by the use of the lodash _.partialRight() method.
JavaScript
// Requiring the lodash library
const _ = require("lodash");
// Given Function
function info(information, name) {
console.log(information + ' ' + name);
}
// Using the _.partialRight() method
// with placeholders
let say_gfg =
_.partialRight(info, 'Hello', _);
say_gfg('geeks');
Output:
'Hello geeks'
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4