Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Array<T>

Type parameters

  • T

Hierarchy

Indexable

[n: number]: T

Index

Properties

length

length: number

Methods

concat

  • concat<U>(...items: U[]): T[]
  • concat(...items: T[]): T[]

every

  • every(callbackfn: function, thisArg?: any): boolean
  • Parameters

    • callbackfn: function
        • (value: T, index: number, array: T[]): boolean
        • Parameters

          • value: T
          • index: number
          • array: T[]

          Returns boolean

    • Optional thisArg: any

    Returns boolean

filter

  • filter(callbackfn: function, thisArg?: any): T[]
  • Parameters

    • callbackfn: function
        • (value: T, index: number, array: T[]): boolean
        • Parameters

          • value: T
          • index: number
          • array: T[]

          Returns boolean

    • Optional thisArg: any

    Returns T[]

forEach

  • forEach(callbackfn: function, thisArg?: any): void
  • Parameters

    • callbackfn: function
        • (value: T, index: number, array: T[]): void
        • Parameters

          • value: T
          • index: number
          • array: T[]

          Returns void

    • Optional thisArg: any

    Returns void

indexOf

  • indexOf(searchElement: T, fromIndex?: number): number

join

  • join(separator?: string): string

lastIndexOf

  • lastIndexOf(searchElement: T, fromIndex?: number): number

map

  • map<U>(callbackfn: function, thisArg?: any): U[]
  • Type parameters

    • U

    Parameters

    • callbackfn: function
        • (value: T, index: number, array: T[]): U
        • Parameters

          • value: T
          • index: number
          • array: T[]

          Returns U

    • Optional thisArg: any

    Returns U[]

pop

  • pop(): T

push

  • push(...items: T[]): number

reduce

  • reduce(callbackfn: function, initialValue?: T): T
  • reduce<U>(callbackfn: function, initialValue: U): U
  • Parameters

    • callbackfn: function
        • (previousValue: T, currentValue: T, currentIndex: number, array: T[]): T
        • Parameters

          • previousValue: T
          • currentValue: T
          • currentIndex: number
          • array: T[]

          Returns T

    • Optional initialValue: T

    Returns T

  • Type parameters

    • U

    Parameters

    • callbackfn: function
        • (previousValue: U, currentValue: T, currentIndex: number, array: T[]): U
        • Parameters

          • previousValue: U
          • currentValue: T
          • currentIndex: number
          • array: T[]

          Returns U

    • initialValue: U

    Returns U

reduceRight

  • reduceRight(callbackfn: function, initialValue?: T): T
  • reduceRight<U>(callbackfn: function, initialValue: U): U
  • Parameters

    • callbackfn: function
        • (previousValue: T, currentValue: T, currentIndex: number, array: T[]): T
        • Parameters

          • previousValue: T
          • currentValue: T
          • currentIndex: number
          • array: T[]

          Returns T

    • Optional initialValue: T

    Returns T

  • Type parameters

    • U

    Parameters

    • callbackfn: function
        • (previousValue: U, currentValue: T, currentIndex: number, array: T[]): U
        • Parameters

          • previousValue: U
          • currentValue: T
          • currentIndex: number
          • array: T[]

          Returns U

    • initialValue: U

    Returns U

reverse

  • reverse(): T[]

shift

  • shift(): T

slice

  • slice(start?: number, end?: number): T[]

some

  • some(callbackfn: function, thisArg?: any): boolean
  • Parameters

    • callbackfn: function
        • (value: T, index: number, array: T[]): boolean
        • Parameters

          • value: T
          • index: number
          • array: T[]

          Returns boolean

    • Optional thisArg: any

    Returns boolean

sort

  • sort(compareFn?: function): T[]
  • Parameters

    • Optional compareFn: function
        • (a: T, b: T): number
        • Parameters

          • a: T
          • b: T

          Returns number

    Returns T[]

splice

  • splice(start: number): T[]
  • splice(start: number, deleteCount: number, ...items: T[]): T[]

toLocaleString

  • toLocaleString(): string

toString

  • toString(): string

unshift

  • unshift(...items: T[]): number

Generated using TypeDoc