unboundedPairs

open override fun <K : Any, V> unboundedPairs(pairs: Iterable<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.

This variant explicitly creates a map from an unbounded Iterable. If possible, fromPairs should be preferred, so that the underlying map implementation can be size-optimized during construction.

Return

Created JS map instance.

Parameters

pairs

Pairs from which to create a JS map.