• Convert an map with a key as number of string to a JS object

    Type Parameters

    • K extends string | number

    • V

    Parameters

    • data: Map<K, V>

      Map object to convert

    Returns {
        [key in K]: V
    }

    A map Object with each key of the data as property