/** * 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`. */functionapply(func,thisArg,args){switch(args.length){case0:returnfunc.call(thisArg);case1:returnfunc.call(thisArg,args[0]);case2:returnfunc.call(thisArg,args[0],args[1]);case3:returnfunc.call(thisArg,args[0],args[1],args[2]);}returnfunc.apply(thisArg,args);}module.exports=apply;