@newdash/newdash
Version:
javascript/typescript utility library
13 lines (12 loc) • 467 B
TypeScript
/**
* 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`.
* @param {Array} args The arguments to invoke `func` with.
* @returns {*} Returns the result of `func`.
*/
export function apply(func: Function, thisArg: any, args: any[]): any;
export default apply;