Skip to content

Js

1 min read

No import is needed.

Read the usage guide for examples and common tasks. This reference lists the public declarations for this part of the library. See Reading API signatures for parameter and result notation.

null

The JavaScript null value.

public static get null(): js

undefined

The JavaScript undefined value.

public static get undefined(): js

to_int

Explicit conversions back to Dream values.

public fun to_int(): int

to_double

Converts this JavaScript value to a Dream double.

public fun to_double(): double

to_bool

Converts this JavaScript value to a Dream boolean.

public fun to_bool(): bool

to_str

Converts this JavaScript value to a Dream string.

public fun to_str(): string

is_null

True if the referenced value is null or undefined.

public fun is_null(): bool