Skip to main content

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​

ParameterTypeDescription
mapPick<Map<string, T>, "forEach">-

Returns​

Record<string, T>