Class Collection<T>Abstract

Abstract Collection type

Type Parameters

  • T

Hierarchy

Constructors

Methods

  • Iterable of key, value pairs in the map

    Returns IterableIterator<[string, T]>

    Iterable

  • Filter the collection by a given predicate

    Parameters

    • predicate: ((value, key) => boolean)

      Predicate to satisfy

        • (value, key): boolean
        • Parameters

          • value: T
          • key: string

          Returns boolean

    Returns T[]

  • Find some value based on a predicate

    Parameters

    • predicate: ((value, key) => boolean)

      Predicate to satisfy

        • (value, key): boolean
        • Parameters

          • value: T
          • key: string

          Returns boolean

    Returns undefined | T

  • Execute a provided function over each key, value pair in the map

    Parameters

    • cb: ((value, key, map) => void)

      Callback for each pair

        • (value, key, map): void
        • Parameters

          • value: T
          • key: string
          • map: ReactiveMap<string, T>

          Returns void

    Returns void

  • Check whether an id exists in the Collection

    Parameters

    • id: string

      Id

    Returns boolean

    Whether it exists

  • Map the collection using a given callback

    Type Parameters

    • O

    Parameters

    • cb: ((value, key) => O)

      Callback

        • (value, key): O
        • Parameters

          • value: T
          • key: string

          Returns O

    Returns O[]

Generated using TypeDoc