unbounded

open override fun <K : Any, V> unbounded(entries: Iterable<MapLike.Entry<K, V>>): JsMap<K, V>

Return a generic immutable JsMap instance, created from the provided set of entries, each an instance of a JS MapLike.Entry 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

entries

Map entries from which to create a JS map.