- asMap<K, V>(array: [K, V][]): ObservableMap<K, V> & { dataObject: [K, V][] }
Returns ObservableMap<K, V> & { dataObject: [K, V][] }
- asMap<T>(
object: Record<string, T>,
): ObservableMap<string, T> & { dataObject: Record<string, T> } Parameters
- object: Record<string, T>
Returns ObservableMap<string, T> & { dataObject: Record<string, T> }
Wraps an observable object or a tuple array to offer a map like interface.
Param: objOrArray
Object or array.