A concrete Observable map for JSON data.

Hierarchy (view full)

Constructors

Accessors

Methods

  • Remove a key from the map

    Parameters

    • key: string

      the key to remove.

    Returns undefined | ReadonlyPartialJSONValue

    the value of the given key, or undefined if that does not exist.

    Notes

    This is a no-op if the value does not change.

  • Set a key-value pair in the map

    Parameters

    • key: string

      The key to set.

    • value: ReadonlyPartialJSONValue

      The value for the key.

    Returns undefined | ReadonlyPartialJSONValue

    the old value for the key, or undefined if that did not exist.

    Throws

    if the new value is undefined.

    Notes

    This is a no-op if the value does not change.