_.over

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

source npm package

Creates a function that invokes iteratees with the arguments it receives and returns their results.

Since

4.0.0

Arguments

  1. [iteratees=[_.identity]] (…(Function|Function[])): The iteratees to invoke.

Returns

(Function): Returns the new function.

Example

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