get

abstract fun <T : JsAny?> get(key: String): T?(source)

Return a value.

Parameters

key

A string.


abstract fun <T : JsAny?> get(key: String, defaultValue: T): T(source)

Return a value.

Parameters

key

A string.

defaultValue

A value that should be returned when there is no value (undefined) with the given key.