Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • ArrayConstructor

Callable

  • ArrayConstructor(arrayLength?: number): any[]
  • ArrayConstructor<T>(arrayLength: number): T[]
  • ArrayConstructor<T>(...items: T[]): T[]
  • Parameters

    • Optional arrayLength: number

    Returns any[]

  • Type Parameters

    • T

    Parameters

    • arrayLength: number

    Returns T[]

  • Type Parameters

    • T

    Parameters

    • Rest ...items: T[]

    Returns T[]

Index

Constructors

Properties

Methods

Constructors

  • new ArrayConstructor(arrayLength?: number): any[]
  • new ArrayConstructor<T>(arrayLength: number): T[]
  • new ArrayConstructor<T>(...items: T[]): T[]
  • Parameters

    • Optional arrayLength: number

    Returns any[]

  • Type Parameters

    • T

    Parameters

    • arrayLength: number

    Returns T[]

  • Type Parameters

    • T

    Parameters

    • Rest ...items: T[]

    Returns T[]

Properties

[species]: ArrayConstructor
prototype: any[]

Methods

  • from<T>(arrayLike: ArrayLike<T>): T[]
  • from<T, U>(arrayLike: ArrayLike<T>, mapfn: ((v: T, k: number) => U), thisArg?: any): U[]
  • from<T>(iterable: Iterable<T> | ArrayLike<T>): T[]
  • from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: ((v: T, k: number) => U), thisArg?: any): U[]
  • Creates an array from an array-like object.

    Type Parameters

    • T

    Parameters

    • arrayLike: ArrayLike<T>

      An array-like object to convert to an array.

    Returns T[]

  • Creates an array from an iterable object.

    Type Parameters

    • T

    • U

    Parameters

    • arrayLike: ArrayLike<T>

      An array-like object to convert to an array.

    • mapfn: ((v: T, k: number) => U)

      A mapping function to call on every element of the array.

        • (v: T, k: number): U
        • Parameters

          • v: T
          • k: number

          Returns U

    • Optional thisArg: any

      Value of 'this' used to invoke the mapfn.

    Returns U[]

  • Creates an array from an iterable object.

    Type Parameters

    • T

    Parameters

    Returns T[]

  • Creates an array from an iterable object.

    Type Parameters

    • T

    • U

    Parameters

    • iterable: Iterable<T> | ArrayLike<T>

      An iterable object to convert to an array.

    • mapfn: ((v: T, k: number) => U)

      A mapping function to call on every element of the array.

        • (v: T, k: number): U
        • Parameters

          • v: T
          • k: number

          Returns U

    • Optional thisArg: any

      Value of 'this' used to invoke the mapfn.

    Returns U[]

  • isArray(arg: any): arg is any[]
  • Parameters

    • arg: any

    Returns arg is any[]

  • of<T>(...items: T[]): T[]
  • Returns a new array from a set of elements.

    Type Parameters

    • T

    Parameters

    • Rest ...items: T[]

      A set of elements to include in the new array object.

    Returns T[]

Generated using TypeDoc