Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface OrderedMap<K, V>

Type parameters

  • K

  • V

Hierarchy

Implemented by

Index

Properties

size

size: number

Methods

clear

  • clear(): void

delete

  • delete(key: K): boolean

entries

firstEntry

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

firstKey

  • firstKey(): K | undefined

firstValue

  • firstValue(): V | undefined

forEach

  • forEach<T, S>(callback: function, thisArg?: S): T | undefined
  • Type parameters

    • T

    • S

    Parameters

    • callback: function
        • (this: S, key: K, value: V): T | void
        • Parameters

          • this: S
          • key: K
          • value: V

          Returns T | void

    • Optional thisArg: S

    Returns T | undefined

get

  • get(key: K): V | undefined

getEntry

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

has

  • has(key: K): boolean

isEmpty

  • isEmpty(): boolean

keys

lastEntry

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

lastKey

  • lastKey(): K | undefined

lastValue

  • lastValue(): V | undefined

nextEntry

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

nextKey

  • nextKey(key: K): K | undefined

nextValue

  • nextValue(key: K): V | undefined

previousEntry

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

previousKey

  • previousKey(key: K): K | undefined

previousValue

  • previousValue(key: K): V | undefined

set

  • set(key: K, newValue: V): this

values