Function construct
- construct<A extends readonly any[], R>(
target: new (...args: A) => R,
argumentsList: Readonly<A>,
newTarget?: new (...args: any) => any,
): R Type Parameters
Parameters
Returns R
- construct(
target: Function,
argumentsList: ArrayLike<any>,
newTarget?: Function,
): any Constructs the target with the elements of specified array as the arguments and the specified constructor as the
new.target
value.Parameters
Returns any
Constructs the target with the elements of specified array as the arguments and the specified constructor as the
new.target
value.