Function: mapToObject()
function mapToObject<T>(map): Record<string, T>;
Converts a map to an object. If the map is a collection wrapper it will return the backed object.
Type Parameters
| Type Parameter |
|---|
T |
Parameters
| Parameter | Type | Description |
|---|---|---|
map | Pick<Map<string, T>, "forEach"> | - |
Returns
Record<string, T>