curry-right

v4.17.11arrow_drop_down
v4.17.11
STATUS
Passing
DOWNLOADS
131
LICENSE
MIT
VISIBILITY
Public
PUBLISHED
6 years ago
SIZE
5 KB
This method is like `_
1 contributor
Install curry-right as a package?
Copied
npm i @bit/lodash.lodash.curry-right
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.cloud
Component Example
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
import
any of the 1 million components
and packages in Bit or NPM to the example.
import Button from '@bit/grommet.grommet.button';
import Lodash from 'lodash';
toggle layout
No preview available
modifieddraft
chevron_left
chevron_right
curryRight (
func:Function,
arity:number?,
null-null
) : Function

This method is like _.curry except that arguments are applied to func in the manner of _.partialRight instead of _.partial.

The _.curryRight.placeholder value, which defaults to _ in monolithic builds, may be used as a placeholder for provided arguments.

Note: This method doesn’t set the “length” property of curried functions.

Example
var abc = function(a, b, c) {
  return [a, b, c];
};

var curried = _.curryRight(abc);

curried(3)(2)(1);
// => [1, 2, 3]

curried(2, 3)(1);
// => [1, 2, 3]

curried(1, 2, 3);
// => [1, 2, 3]

// Curried with placeholders.
curried(3)(1, _)(2);
// => [1, 2, 3]
Arguments
func: Function

The function to curry.

arity: number?

The arity of func.

null-null

{Object} [guard] Enables use as an iteratee for methods like _.map.

Returns
Function

Returns the new curried function.

Help and resources