Function apply
- apply<T, A extends readonly any[], R>(
 target: (this: T, ...args: A) => R,
 thisArgument: T,
 argumentsList: Readonly<A>,
 ): R
- Type Parameters- Parameters- Returns R
- apply(target: Function, thisArgument: any, argumentsList: ArrayLike<any>): any
- Calls the function with the specified object as the this value and the elements of specified array as the arguments. - Parameters- Returns any
Calls the function with the specified object as the this value and the elements of specified array as the arguments.