Package-level declarations

Types

Link copied to clipboard

JavaScript AbortController class

Link copied to clipboard

JavaScript AbortSignal class

Link copied to clipboard
class Console : JsAny

JavaScript console class

Link copied to clipboard
object Intl : JsAny

I18n API

Link copied to clipboard
object JSON : JsAny

JavaScript JSON object.

Link copied to clipboard

Properties

Link copied to clipboard
external val console: Console

JavaScript console object

Link copied to clipboard
external val globalThis: JsAny

JavaScript global object

Functions

Link copied to clipboard
expect fun assign(target: JsAny, source: JsAny)

Copies all properties from source object to target object

actual fun assign(target: JsAny, source: JsAny)

Copies all properties from source object to the target object

actual fun assign(target: JsAny, source: JsAny)

Copies all properties from source object to the target object

Link copied to clipboard

Build AddEventListenerOptions with a signal controller to remove the listener.

Link copied to clipboard

Build CustomEventInit with a detail object.

Link copied to clipboard
expect fun <T : JsAny> concat(array1: JsArray<T>, array2: JsArray<T>): JsArray<T>

Merge two arrays. Returns a new array containing the contents of both given arrays.

actual fun <T : JsAny> concat(array1: JsArray<T>, array2: JsArray<T>): JsArray<T>

Merge two arrays. Returns a new array containing the contents of both given arrays.

actual fun <T : JsAny> concat(array1: JsArray<T>, array2: JsArray<T>): JsArray<T>

Merge two arrays. Returns a new array containing the contents of both given arrays.

Link copied to clipboard
expect fun delete(o: JsAny, key: String)

Delete a property from an object

actual fun delete(o: JsAny, key: String)

Delete a property from an object

actual fun delete(o: JsAny, key: String)

Delete a property from an object

Link copied to clipboard
expect operator fun JsAny.get(key: String): JsAny?

Operator to get property from JS Object

actual operator fun JsAny.get(key: String): JsAny?

Operator to get property from JS Object

actual operator fun JsAny.get(key: String): JsAny?

Operator to get property from JS Object

Link copied to clipboard
expect fun isArray(o: JsAny?): Boolean

Returns whether the given value is an array

actual fun isArray(o: JsAny?): Boolean

Returns whether the given value is an array

actual fun isArray(o: JsAny?): Boolean

Returns whether the given value is an array

Link copied to clipboard
expect fun jsTypeOf(o: JsAny?): String

Return native JS type of a given value

actual fun jsTypeOf(o: JsAny?): String

Returns JS type of a given value

actual fun jsTypeOf(o: JsAny?): String

Return native JS type of a given value

Link copied to clipboard
expect fun keys(o: JsAny): List<String>

Get the list of keys from JS Object

actual fun keys(o: JsAny): List<String>

Get the list of keys from JS Object

actual fun keys(o: JsAny): List<String>

Get the list of keys from JS Object

Link copied to clipboard
expect fun obj(): JsAny

Return empty JS Object

inline fun <T : JsAny> obj(init: T.() -> Unit): T

Helper function for creating JavaScript objects with given type.

actual inline fun obj(): JsAny
inline fun obj(noinline init: dynamic.() -> Unit): dynamic

Helper function for creating dynamic JavaScript objects.

actual fun obj(): JsAny
Link copied to clipboard
expect operator fun JsAny.set(key: String, value: JsAny)

Operator to set property on JS Object

actual operator fun JsAny.set(key: String, value: JsAny)

Operator to set property on JS Object

actual operator fun JsAny.set(key: String, value: JsAny)

Operator to set property on JS Object

Link copied to clipboard
expect fun undefined(): JsAny?

Return undefined value

actual fun undefined(): JsAny?

Return undefined value

actual fun undefined(): JsAny?

Return undefined value