fromPairs

open override fun <K : Any, V> fromPairs(pairs: Collection<Pair<K, V>>): JsMap<K, V>

Return a generic immutable JsMap instance, created from the provided set of pairs, each an instance of Pair of type K and V.

Return

Created JS map instance.

Parameters

pairs

Pairs from which to create a JS map.