JsArray

external class JsArray<T : JsAny?> : JsAny(source)

JavaScript Array

Since Kotlin

1.8

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
val length: Int
Since Kotlin 1.8

Functions

Link copied to clipboard
operator fun <T : JsAny?> JsArray<T>.get(index: Int): T?
Since Kotlin 1.8
Link copied to clipboard
operator fun <T : JsAny?> JsArray<T>.set(index: Int, value: T)
Since Kotlin 1.8
Link copied to clipboard
fun <T : JsAny?> JsArray<T>.toArray(): Array<T>

Returns a new Array containing all the elements of this JsArray.

Since Kotlin 1.8
Link copied to clipboard
fun <T : JsAny?> JsArray<T>.toList(): List<T>

Returns a new List containing all the elements of this JsArray.

Since Kotlin 1.8
Link copied to clipboard

For a Dynamic value caught in JS, returns the corresponding Throwable if it was thrown from Kotlin, or null otherwise.

Since Kotlin 1.8
Link copied to clipboard
fun <T : JsAny> JsAny.unsafeCast(): T

Cast JsAny to other Js type without runtime check

Since Kotlin 1.8