Options
All
  • Public
  • Public/Protected
  • All
Menu

Implementation of Collection that uses an array to store elements. Can either copy given array or reuse it - this behavior is defined by copyArray parameter of the constructor.

Type parameters

  • E

Hierarchy

  • ArrayCollection

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

Private array

array: E[]

Methods

every

  • every(p: function): boolean

filter

find

  • find(p: function): E | undefined

forEach

  • forEach(f: function): void

iterator

map

reduce

  • reduce<A>(r: function, initialValue: A): A
  • Type parameters

    • A

    Parameters

    • r: function
        • (accumulator: A, currentElement: E): A
        • Parameters

          • accumulator: A
          • currentElement: E

          Returns A

    • initialValue: A

    Returns A

size

  • size(): number

some

  • some(p: function): boolean

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc