Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ReducedMap<K, V, U>

Type parameters

  • K

  • V

  • U

Hierarchy

Implemented by

Index

Properties

Readonly size

size: number

Methods

clear

  • clear(): void
  • Returns void

delete

  • delete(key: K): boolean
  • Parameters

    • key: K

    Returns boolean

entries

  • Returns Iterator<[K, V]>

firstEntry

  • firstEntry(): undefined | [K, V]
  • Returns undefined | [K, V]

firstKey

  • firstKey(): undefined | K
  • Returns undefined | K

firstValue

  • firstValue(): undefined | V
  • Returns undefined | V

forEach

  • forEach<T>(callback: (key: K, value: V) => void | T): undefined | T
  • forEach<T, S>(callback: (key: K, value: V) => void | T, thisArg: S): undefined | T
  • Type parameters

    • T

    Parameters

    • callback: (key: K, value: V) => void | T
        • (key: K, value: V): void | T
        • Parameters

          • key: K
          • value: V

          Returns void | T

    Returns undefined | T

  • Type parameters

    • T

    • S

    Parameters

    • callback: (key: K, value: V) => void | T
        • (key: K, value: V): void | T
        • Parameters

          • key: K
          • value: V

          Returns void | T

    • thisArg: S

    Returns undefined | T

get

  • get(key: K): undefined | V
  • Parameters

    • key: K

    Returns undefined | V

getEntry

  • getEntry(index: number): undefined | [K, V]
  • Parameters

    • index: number

    Returns undefined | [K, V]

has

  • has(key: K): boolean
  • Parameters

    • key: K

    Returns boolean

isEmpty

  • isEmpty(): boolean
  • Returns boolean

keys

  • Returns Iterator<K>

lastEntry

  • lastEntry(): undefined | [K, V]
  • Returns undefined | [K, V]

lastKey

  • lastKey(): undefined | K
  • Returns undefined | K

lastValue

  • lastValue(): undefined | V
  • Returns undefined | V

nextEntry

  • nextEntry(key: K): undefined | [K, V]
  • Parameters

    • key: K

    Returns undefined | [K, V]

nextKey

  • nextKey(key: K): undefined | K
  • Parameters

    • key: K

    Returns undefined | K

nextValue

  • nextValue(key: K): undefined | V
  • Parameters

    • key: K

    Returns undefined | V

previousEntry

  • previousEntry(key: K): undefined | [K, V]
  • Parameters

    • key: K

    Returns undefined | [K, V]

previousKey

  • previousKey(key: K): undefined | K
  • Parameters

    • key: K

    Returns undefined | K

previousValue

  • previousValue(key: K): undefined | V
  • Parameters

    • key: K

    Returns undefined | V

reduced

  • reduced(identity: U, accumulator: (result: U, element: V) => U, combiner: (result: U, result2: U) => U): U
  • Parameters

    • identity: U
    • accumulator: (result: U, element: V) => U
        • (result: U, element: V): U
        • Parameters

          • result: U
          • element: V

          Returns U

    • combiner: (result: U, result2: U) => U
        • (result: U, result2: U): U
        • Parameters

          • result: U
          • result2: U

          Returns U

    Returns U

set

  • Parameters

    • key: K
    • newValue: V

    Returns ReducedMap<K, V, U>

values

  • Returns Iterator<V>

Generated using TypeDoc