_.over

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

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]
doc_Lodash
2016-11-27 16:39:23
Comments
Leave a Comment

Please login to continue.