Skip to content
PACKAGES

isTerminalNone()

Check whether a terminal slot carries no terminal state.

import { isTerminalNone } from "@graphrefly/ts/core";
function isTerminalNone(t: unknown): boolean
ParameterTypeDescription
tunknownTerminal slot value from {@link Ctx.terminal}.

true when the slot is false or undefined.

isTerminalNone(false); // true

packages/ts/src/ctx/types.ts