JsArray

JavaScript Array

Since Kotlin

2.2
actual 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
Link copied to clipboard
Since Kotlin 2.2
Since Kotlin 1.8

Functions

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

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

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

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

Since Kotlin 2.2

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
Since Kotlin 2.2

Cast JsAny to other Js type without runtime check

Since Kotlin 1.8