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: Map<string, T>

    Returns Record<string, T>