• Constructs a new ReactiveMap with the given initial content.

    Type Parameters

    • K
    • V

    Parameters

    • Optionalinitial: Iterable<[K, V], any, any>

    Returns ReactiveMap<K, V>

    // Empty
    const map1 = reactiveMap<string, number>();

    // With initial content
    const map2 = reactiveMap<string, number>([["foo", 1], ["bar", 2]]);