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: any
_map: any

Accessors

  • get size(): number
  • Returns number

Methods

  • Returns IterableIterator<[KeyType, ValueType]>

  • Returns void

  • Parameters

    Returns boolean

  • Parameters

    Returns undefined | ValueType

  • Parameters

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

    Returns void

  • Parameters

    Returns boolean