Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ObjectedMap<T, K, V, K, V, K, V>

Type parameters

  • T: object

  • K

  • V

  • K

  • V

  • K

  • V

Hierarchy

Index

Properties

Readonly [Symbol.toStringTag]

[Symbol.toStringTag]: string

Readonly size

size: number

Static Map

Map: MapConstructor

Methods

[Symbol.iterator]

  • [Symbol.iterator](): IterableIterator<[K, V]>
  • Returns an iterable of entries in the map.

    Returns IterableIterator<[K, V]>

clear

  • clear(): void
  • Returns void

delete

  • delete(key: K): boolean
  • Parameters

    • key: K

    Returns boolean

entries

  • entries(): IterableIterator<[K, V]>
  • Returns an iterable of key, value pairs for every entry in the map.

    Returns IterableIterator<[K, V]>

forEach

  • forEach(callbackfn: (value: V, key: K, map: Map<K, V>) => void, thisArg?: any): void
  • Parameters

    • callbackfn: (value: V, key: K, map: Map<K, V>) => void
        • (value: V, key: K, map: Map<K, V>): void
        • Parameters

          • value: V
          • key: K
          • map: Map<K, V>

          Returns void

    • Optional thisArg: any

    Returns void

get

  • get<K>(key: K): T[K]
  • Type parameters

    • K: keyof T

    Parameters

    • key: K

    Returns T[K]

has

  • has(key: K): boolean
  • Parameters

    • key: K

    Returns boolean

keys

  • keys(): IterableIterator<K>
  • Returns an iterable of keys in the map

    Returns IterableIterator<K>

set

  • set<K, V>(key: K, value: V): this
  • Type parameters

    • K: keyof T

    • V: T[K]

    Parameters

    • key: K
    • value: V

    Returns this

stringify

  • stringify(space?: number): string
  • Parameters

    • Default value space: number = 0

    Returns string

toJSONObject

  • Returns JSONObject<T>

values

  • values(): IterableIterator<V>
  • Returns an iterable of values in the map

    Returns IterableIterator<V>

Static toJSONObject

  • toJSONObject<T, O>(objectedMap: O): JSONObject<T>
  • Type parameters

    Parameters

    • objectedMap: O

    Returns JSONObject<T>

Generated using TypeDoc