Function Map
collection?: Iterable<readonly [K, V], any, any>,
): NutrientViewer.Immutable.Map<K, V>
Map<T>(
collection: NutrientViewer.Immutable.List<Iterable<T, any, any>>,
): NutrientViewer.Immutable.Map<T, T>
Map<R extends { [key: string]: unknown }>(
obj: R & (string extends keyof R ? unknown : never),
): NutrientViewer.Immutable.Map<string, R[string]>
Map<
R extends
{
[key: string]: unknown;
[key: number]: unknown;
[key: symbol]: unknown;
},
>(
obj: R,
): MapOf<R>
Map<V>(obj: { [key: string]: V }): NutrientViewer.Immutable.Map<string, V>
Map<K extends string | symbol, V>(
obj: { [P in string | symbol]?: V },
): NutrientViewer.Immutable.Map<K, V>
Create a new immutable Map containing the entries of the provided collection-like or object.
Note:
Mapis a factory function and not a class, and does not use thenewkeyword during construction.Type Declaration
Create a new immutable Map from an object typed with a string index signature, such as
Record<string, V>, keyed by its string keys.Type Declaration
Create a new immutable Map containing the entries of the provided collection-like or object.
Note:
Mapis a factory function and not a class, and does not use thenewkeyword during construction.Type Declaration
Create a new immutable Map containing the entries of the provided collection-like or object.
Note:
Mapis a factory function and not a class, and does not use thenewkeyword during construction.Type Declaration
Create a new immutable Map containing the entries of the provided collection-like or object.
Note:
Mapis a factory function and not a class, and does not use thenewkeyword during construction.Type Declaration
Create a new immutable Map containing the entries of the provided collection-like or object.
Note:
Mapis a factory function and not a class, and does not use thenewkeyword during construction.