_.ary
Last updated
Was this helpful?
Last updated
Was this helpful?
语法:
源代码链接:
npm包链接:
描述:
创建一个调用func
的函数。调用func
时最多接受n
个参数,忽略多出的参数。
开始版本:3.0.0
参数:
func (Function)
: 需要被限制参数个数的函数。
[n=func.length] (number)
: 限制的参数数量。
返回值:
(Function)
: 返回新的覆盖函数。
例子: