GraphReFlyTS

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

ParameterTypeDescription
tunknownTerminal 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