Function mapToObject

  • Converts a map to an object. If the map is a collection wrapper it will return the backed object.

    Type Parameters

    • T

    Parameters

    • map: Pick<Map<string, T>, "forEach">

    Returns Record<string, T>