阅读(4352) (0)

Lodash _.over

2021-09-23 16:55:04 更新

_.over([iteratees=[_.identity]]) 

创建一个函数,传入提供的参数的函数并调用 iteratees 返回结果。

添加版本

4.0.0

参数

  1. [iteratees=[_.identity]] (...(Function|Function[])): 要调用的 iteratees。

返回

(Function): 返回新的函数。

例子

var func = _.over([Math.max, Math.min]); func(1, 2, 3, 4);
// => [4, 1]