interface OrderedMapBase<K,V,Tp>
undocumented
Companion namespace: OrderedMapBase
Implemented by: OrderedHashMap<K,V>
, OrderedMapBase.NonEmpty<K,V,Tp>
, OrderedMap<K,V>
, OrderedSortedMap<K,V>
, OrderedMapEmpty<K,V,Tp>
Type parameters
Name | Constraints | Default | Description |
---|---|---|---|
K | undocumented | ||
V | undocumented | ||
Tp | OrderedMapBase.Types | OrderedMapBase.Types | undocumented |
Properties
keyOrder
Returns a List
instance containing the key order of the Map.
keyOrder
List
instance containing the key order of the Map.sourceMap
Returns the contained Map
instance.
sourceMap
Map
instance.Definition
readonly sourceMap:
WithKeyValue
<Tp, K, V>['sourceMap'];
example
const m = OrderedHashMap.of([2, 'b'], [1, 'a'])
console.log(m.sourceMap.toString())
// => HashMap(1 -> 'a', 2 -> 'b')