Hyperlinkv0.8.0-beta.28

Graph

Graph.isGraphconsteffect/Graph.ts:373
(u: unknown): u is Graph<unknown, unknown>

Returns true if a value has the graph runtime type identifier, narrowing it to a Graph.

When to use

Use to narrow an unknown value before treating it as a graph value.

Gotchas

This guard checks the shared graph runtime type identifier and does not distinguish immutable graphs from mutable graphs.

guards
Source effect/Graph.ts:3731 lines
export const isGraph = (u: unknown): u is Graph<unknown, unknown> => hasProperty(u, TypeId)
Referenced by 7 symbols