• Creates a new Immutable OrderedMap.

    Created with the same key value pairs as the provided Collection.Keyed or JavaScript Object or expects a Collection of [K, V] tuple entries.

    The iteration order of key-value pairs provided to this constructor will be preserved in the OrderedMap.

    let newOrderedMap = OrderedMap({key: "value"})
    let newOrderedMap = OrderedMap("key", "value")

    Note: OrderedMap is a factory function and not a class, and does not use the new keyword during construction.

    Type Parameters

    • K

    • V

    Parameters

    Returns <internal>.OrderedMap<K, V>

  • Type Parameters

    • V

    Parameters

    • obj: { [key: string]: V }
      • [key: string]: V

    Returns <internal>.OrderedMap<string, V>

Generated using TypeDoc