Skip to main content

StaticJsNull

The sandboxed null value.

Import

import { type StaticJsNull, isStaticJsNull } from "@suntime-js/core";

Extends

StaticJsPrimitive

Factory

realm.types.null (singleton property)


Properties

Inherits all properties from StaticJsPrimitive.

value

Type: null

Always null.

typeOf

"object"

Note: this matches JavaScript's typeof null === "object" behavior.

runtimeTypeOf

"null"

Use this to distinguish null from plain objects.


Type guard

isStaticJsNull(value)

isStaticJsNull(value: unknown): value is StaticJsNull