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