Function: asMap()
Wraps an observable object or a tuple array to offer a map like interface.
Param
objOrArray
Object or array.
Call Signature
function asMap<K, V>(array): ObservableMapWithDataObject<K, V, [K, V][]>;
Wraps an observable object or a tuple array to offer a map like interface.
Type Parameters
| Type Parameter |
|---|
K |
V |
Parameters
| Parameter | Type | Description |
|---|---|---|
array | [K, V][] | Array. |
Returns
ObservableMapWithDataObject<K, V, [K, V][]>
Call Signature
function asMap<T>(object): ObservableMapWithDataObject<string, T, Record<string, T>>;
Wraps an observable object or a tuple array to offer a map like interface.
Type Parameters
| Type Parameter |
|---|
T |
Parameters
| Parameter | Type | Description |
|---|---|---|
object | Record<string, T> | Object. |
Returns
ObservableMapWithDataObject<string, T, Record<string, T>>