stringMapOf

Platform and version requirements: JS (1.1)
fun <V> stringMapOf(
    vararg pairs: Pair<String, V>
): HashMap<String, V>

Constructs the specialized implementation of HashMap with String keys, which stores the keys as properties of JS object without hashing them.

© 2010–2021 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/string-map-of.html