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

sourcenpm package

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

Since

4.0.0

Arguments

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

Returns

(Function): Returns the new function.

Example

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