Case insensitive implementation of ObservableMap keyed by string.

Type Parameters

  • V

Hierarchy (view full)

Constructors

Properties

_handles: Handles<unknown, ResourceHandle>
_originalMap: ObservableMap<string, V> | Map<string, V>

The underlying map that this object is delegating to.

[toStringTag] = "ObservableMap"

Used by Object.toString().

@eventTypes: MapEvents<string, V>

Do not directly reference this property. Use EventNames and EventTypes helpers from @arcgis/core/Evented.

Accessors

  • get size(): number
  • The number of elements.

    Returns number

Methods

  • Returns the [key, value] pairs for each element in the map in insertion order.

    Returns MapIterator<[string, V]>

  • Removes the specified element.

    Parameters

    • key: string

      The element's key.

    Returns boolean

    True if an element was deleted, otherwise false.

  • Returns the [key, value] pairs for each element in the map in insertion order.

    Returns MapIterator<[string, V]>

  • Executes a provided function once per each key/value pair in the map.

    Parameters

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

      Function to execute for each element.

        • (value, key, map): void
        • Parameters

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

          Returns void

    • OptionalthisArg: unknown

      Value to use as this when executing callback.

    Returns void

  • Returns a specified element from the Map object. If the value that is associated to the provided key is an object, then you will get a reference to that object and any change made to that object will effectively modify it inside the Map.

    Parameters

    • key: string

    Returns V

    Returns the element associated with the specified key. If no element is associated with the specified key, undefined is returned.

  • Indicates whether or not an element with the specified key exists.

    Parameters

    • key: string

      The key to test for.

    Returns boolean

  • Returns the keys for each element in the map in insertion order.

    Returns MapIterator<string>

  • Adds a new element with a specified key and value to the Map. If an element with the same key already exists, the element will be updated.

    Parameters

    • key: string
    • Optionalvalue: V

    Returns this

  • Returns a serializable representation of the map.

    Returns unknown

  • Returns the values for each element in the map in insertion order.

    Returns MapIterator<V>