Class FixMap<KeyType, ValueType>

Some fix for JS MAP:

  • find(key) search an item in the map and returns undefined if not found
  • get(key) return the item if exists or otherwise create and returns it
  • set(key, value) returns the value of the item (rather the MAP)

Type Parameters

  • KeyType

  • ValueType

Constructors

Properties

Accessors

Methods

Constructors

Properties

_initValue: (() => ValueType)

Type declaration

_map: Map<KeyType, ValueType>

Accessors

Methods

  • Parameters

    • callbackfn: ((value, key, map) => void)
    • Optional thisArg: any

    Returns void

Generated using TypeDoc