API Reference
isTerminalNone()
Check whether a terminal slot carries no terminal state.
Import
import { isTerminalNone } from "@graphrefly/ts/core";
Signature
function isTerminalNone(t: unknown): boolean
Parameters
| Parameter | Type | Description |
|---|---|---|
t | unknown | Terminal slot value from {@link Ctx.terminal}. |
Returns
true when the slot is false or undefined.
Example
isTerminalNone(false); // true
Source
packages/ts/src/ctx/types.ts