MCPcopy Index your code
hub / github.com/deployd/deployd / apply

Function apply

test-app/public/sinon.js:11096–11104  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

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.

Callers 8

baseInvokeFunction · 0.85
wrapperFunction · 0.85
createOverFunction · 0.85
overRestFunction · 0.85
unzipWithFunction · 0.85
sinon.jsFile · 0.85
spreadFunction · 0.85
condFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected