Creates a function that invokes `iteratees` with the arguments it receives and returns their results.
const func = over([Math.max, Math.min])
func(1, 2, 3, 4)
// => [4, 1]
Name | Type | Attribute | Description |
---|---|---|---|
iteratees | The iteratees to invoke. |
{ "comment": "/**\r\n * Creates a function that invokes `iteratees` with the arguments it receives\r\n * and returns their results.\r\n *\r\n * @since 4.0.0\r\n * @category Util\r\n * @param {Function[]} [iteratees=[identity]]\r\n * The iteratees to invoke.\r\n * @returns {Function} Returns the new function.\r\n * @example\r\n *\r\n * const func = over([Math.max, Math.min])\r\n *\r\n * func(1, 2, 3, 4)\r\n * // => [4, 1]\r\n */", "meta": { "range": [ 440, 578 ], "filename": "over.js", "lineno": 19, "path": "C:\\Users\\beaujeup\\projects\\jsdoc-template\\examples\\lodash\\lodash-repo", "code": { "id": "astnode100006589", "name": "over", "type": "FunctionDeclaration", "paramnames": [ "iteratees" ] }, "vars": { "": null } }, "description": "Creates a function that invokes `iteratees` with the arguments it receives\rand returns their results.", "since": "4.0.0", "tags": [ { "originalTitle": "category", "title": "category", "text": "Util", "value": "Util" } ], "params": [ { "type": { "names": [ "Array." ] }, "optional": true, "defaultvalue": "[identity]", "description": "The iteratees to invoke.", "name": "iteratees" } ], "returns": [ { "type": { "names": [ "function" ] }, "description": "Returns the new function." } ], "examples": [ "const func = over([Math.max, Math.min])\r\rfunc(1, 2, 3, 4)\r// => [4, 1]" ], "name": "over", "longname": "over", "kind": "function", "scope": "global", "___id": "T000002R000614", "___s": true, "filepath": "over.js" }