Share your code. Components are building blocks, you are the architect.

utils/partial-right
v1.1.0
1.1.0
1.0.0
MIT
PUBLIC
3
Build: fail
BuildFail
Build Status: fail
Takes a function `f` and a list of arguments, and returns a function `g`

Please configure Bit as a scoped registry to install components with NPM.Learn more

npm config set '@bit:registry' https://node.bitsrc.io
Use utils/partial-right in your project
npm i @bit/bit.ramda.utils.partial-right
Copied

partialRight (f:Function, args:Array) : Function

Takes a function f and a list of arguments, and returns a function g. When applied, g returns the result of applying f to the arguments provided to g followed by the arguments provided initially.

Example

var greet = (salutation, title, firstName, lastName) =>
       salutation + ', ' + title + ' ' + firstName + ' ' + lastName + '!';

     var greetMsJaneJones = R.partialRight(greet, ['Ms.', 'Jane', 'Jones']);

     greetMsJaneJones('Hello'); //=> 'Hello, Ms. Jane Jones!'

Arguments

f: Function

args: Array

Returns

Function