_.curryRight
Last updated
Was this helpful?
Last updated
Was this helpful?
语法:
源代码链接:
npm包链接:
描述:
这个方法类似。 除了它接受参数的方式用代替了。
_.curryRight.placeholder
值,默认是以_
作为附加部分参数的占位符。
Note:这个方法不会设置 curried 函数的 "length" 属性。
开始版本:3.0.0
参数:
func (Function)
: 用来柯里化(curry)的函数。
[arity=func.length] (number)
: 需要提供给 func 的参数数量。 返回值:
(Function)
: 返回新的柯里化(curry)函数。
例子: