Skip to main content

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​

ParameterTypeDescription
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​

ParameterTypeDescription
objectRecord<string, T>Object.

Returns​

ObservableMapWithDataObject<string, T, Record<string, T>>