Function asMap

Wraps an observable object or a tuple array to offer a map like interface.

Object or array.

  • Wraps an observable object or a tuple array to offer a map like interface.

    Type Parameters

    • K
    • V

    Parameters

    • array: [K, V][]

      Array.

    Returns ObservableMap<K, V> & { dataObject: [K, V][] }

  • Wraps an observable object or a tuple array to offer a map like interface.

    Type Parameters

    • T

    Parameters

    • object: Record<string, T>

      Object.

    Returns ObservableMap<string, T> & { dataObject: Record<string, T> }