神岛 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: Object

        The constructor to invoke.

      • argumentsList: Readonly<A>

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

      • OptionalnewTarget: Object

        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

    • Parameters

      Returns any

      使用指定的参数调用一个构造函数。

      Calls a constructor with specified arguments.