* A faster alternative to `Function#apply`, this function invokes `func` * with the `this` binding of `thisArg` and the arguments of `args`. * * @private * @param {Function} func The function to invoke. * @param {*} thisArg The `this` binding of `func`. * @p
(func, thisArg, args)
| 11094 | * @returns {*} Returns the result of `func`. |
| 11095 | */ |
| 11096 | function apply(func, thisArg, args) { |
| 11097 | switch (args.length) { |
| 11098 | case 0: return func.call(thisArg); |
| 11099 | case 1: return func.call(thisArg, args[0]); |
| 11100 | case 2: return func.call(thisArg, args[0], args[1]); |
| 11101 | case 3: return func.call(thisArg, args[0], args[1], args[2]); |
| 11102 | } |
| 11103 | return func.apply(thisArg, args); |
| 11104 | } |
| 11105 | |
| 11106 | /** |
| 11107 | * A specialized version of `baseAggregator` for arrays. |
no outgoing calls
no test coverage detected