Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Array<T>

Type parameters

  • T

Hierarchy

  • Array

Index

Constructors

constructor

  • new Array<T>(): T[]
  • Type parameters

    • T

    Returns T[]

Accessors

length

  • get length(): number
  • set length(value: number): any
  • Returns number

  • Parameters

    • value: number

    Returns any

Methods

fill

  • fill(object: T): T
  • fill(object: T): T
  • Parameters

    • object: T

    Returns T

  • Parameters

    • object: T

    Returns T

includes

  • includes(object: T): boolean
  • Parameters

    • object: T

    Returns boolean

indexOf

  • indexOf(object: T): number
  • Parameters

    • object: T

    Returns number

lastIndexOf

  • lastIndexOf(object: T): number
  • Parameters

    • object: T

    Returns number

pop

  • pop(): T
  • Returns T

push

  • push(...object: T[]): number
  • Parameters

    • Rest ...object: T[]

    Returns number

reverse

  • reverse(): T[]
  • Returns T[]

shift

  • shift(): T
  • Returns T

slice

  • slice(): T[]
  • slice(begin: number, end: number): T[]
  • slice(begin: number, end: number): T[]
  • Returns T[]

  • Parameters

    • begin: number
    • end: number

    Returns T[]

  • Parameters

    • begin: number
    • end: number

    Returns T[]

sort

  • sort(comparator: (objectA: T, objectB: T) => number): T[]
  • Parameters

    • comparator: (objectA: T, objectB: T) => number
        • (objectA: T, objectB: T): number
        • Parameters

          • objectA: T
          • objectB: T

          Returns number

    Returns T[]

splice

  • splice(index: number, count: number): T[]
  • Parameters

    • index: number
    • count: number

    Returns T[]

toString

  • toString(): string
  • Returns string

Generated using TypeDoc