construct

fun <T : Any, A : JsTuple> construct(target: JsConstructorFunction<A, T>, argumentsList: A): T(source)

Constructs the target with the elements of specified array as the arguments and the specified constructor as the new.target value.

Parameters

target

The constructor to invoke.

argumentsList

An array of argument values to be passed to the constructor.


fun <T : Any> construct(target: JsClass<T>, argumentsList: ReadonlyArray<Any?>): T(source)