Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "toMap"

Index

Functions

Functions

toMap

  • toMap<K, V>(this: Sequence<[K, V]>, map?: Map<K, V>): Map<K, V>
  • Returns a map consisting of each key-value pair. If a map is passed the pairs are set on this map. Duplicate keys override each other.

    Type parameters

    • K

    • V

    Parameters

    • this: Sequence<[K, V]>
    • Optional map: Map<K, V>

    Returns Map<K, V>