> For the complete documentation index, see [llms.txt](https://lodash.shujuwajue.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lodash.shujuwajue.com/function/curryright.md).

# \_.curryRight

**语法：**

```javascript
_.curryRight(func, [arity=func.length])
```

**源代码链接：**[source](https://github.com/lodash/lodash/blob/4.17.10/lodash.js#L10243)

**npm包链接：**[npm package](https://www.npmjs.com/package/lodash.curryright)

**描述：**

这个方法类似[`_.curry`](https://lodash.com/docs/4.17.10#curry)。 除了它接受参数的方式用[`_.partialRight`](https://lodash.com/docs/4.17.10#partialRight)代替了[`_.partial`](https://lodash.com/docs/4.17.10#partial)。

`_.curryRight.placeholder`值，默认是以`_`作为附加部分参数的占位符。

> **Note:**&#x8FD9;个方法不会设置 curried 函数的 "length" 属性。

**开始版本：**&#x33;.0.0

**参数：**

* `func (Function)`: 用来柯里化（curry）的函数。
* `[arity=func.length] (number)`: 需要提供给 func 的参数数量。 **返回值：**
* `(Function)`: 返回新的柯里化（curry）函数。

**例子：**

```javascript
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]
```
