Package kotlin.js.collections

Types

JS
2.0

JsArray

Exposes the JavaScript Array to Kotlin.

open class JsArray<E> : JsReadonlyArray<E>
JS
2.0

JsMap

Exposes the JavaScript Map to Kotlin.

open class JsMap<K, V> : JsReadonlyMap<K, V>
JS
2.0

JsReadonlyArray

Exposes the TypeScript ReadonlyArray to Kotlin.

interface JsReadonlyArray<out E>
JS
2.0

JsReadonlyMap

Exposes the TypeScript ReadonlyMap to Kotlin.

interface JsReadonlyMap<K, out V>
JS
2.0

JsReadonlySet

Exposes the TypeScript ReadonlySet to Kotlin.

interface JsReadonlySet<out E>
JS
2.0

JsSet

Exposes the JavaScript Set to Kotlin.

open class JsSet<E> : JsReadonlySet<E>

Functions

JS
2.0

toList

fun <E> JsReadonlyArray<E>.toList(): List<E>
JS
2.0

toMap

fun <K, V> JsReadonlyMap<K, V>.toMap(): Map<K, V>
JS
2.0

toMutableList

fun <E> JsReadonlyArray<E>.toMutableList(): MutableList<E>
JS
2.0

toMutableMap

fun <K, V> JsReadonlyMap<K, V>.toMutableMap(): MutableMap<K, V>
JS
2.0

toMutableSet

fun <E> JsReadonlySet<E>.toMutableSet(): MutableSet<E>
JS
2.0

toSet

fun <E> JsReadonlySet<E>.toSet(): Set<E>