神岛 API 文档 - ArenaPro版
    Preparing search index...
    • Constructs the target with the elements of specified array as the arguments and the specified constructor as the new.target value.

      Type Parameters

      • A extends readonly any[]
      • R

      Parameters

      • target: new (...args: A) => R

        The constructor to invoke.

      • argumentsList: Readonly<A>

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

      • OptionalnewTarget: new (...args: any) => any

        The constructor to be used as the new.target object.

      Returns R

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

      Parameters

      • target: Function

        The constructor to invoke.

      • argumentsList: ArrayLike<any>

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

      • OptionalnewTarget: Function

        The constructor to be used as the new.target object.

      Returns any

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

      Parameters

      • target: Function

        The constructor to invoke.

      • argumentsList: ArrayLike<any>

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

      • OptionalnewTarget: any

        The constructor to be used as the new.target object.

      Returns any