ScriptObject

@Serializable
@SerialName(value = "scriptObject")
data class ScriptObject(val type: String, val value: String) : JSValue

A JavaScript object that cannot be faithfully represented by JSON.

type is the result of JavaScript Object.prototype.toString.call(value) for objects and functions, or typeof value for primitive values. value is the result of JavaScript String(value), for example console or window.

Constructors

Link copied to clipboard
constructor(type: String, value: String)

Properties

Link copied to clipboard

Returns true when this value is JavaScript undefined or null.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Returns this value as a JavaScript boolean primitive.

Link copied to clipboard

Returns this value as a JavaScript boolean primitive, or null when it is not one.

Link copied to clipboard

Returns this value as a JavaScript number primitive.

Link copied to clipboard

Returns this value as a JavaScript number primitive, or null when it is not one.

Link copied to clipboard

Returns this value as a JavaScript string primitive.

Link copied to clipboard

Returns this value as a JavaScript string primitive, or null when it is not one.