Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/rimbu/graph/custom/common/index.ts>GraphElement.isSingleNode

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
function GraphElement.isSingleNode
import { GraphElement } from "https://deno.land/x/rimbu@1.0.2/graph/custom/common/index.ts";
const { isSingleNode } = GraphElement;

Returns true if the given graph element e is a single node. Instructs the compiler that the type is a 1-tuple.

Parameters

e: GraphElement<any>
  • the graph element

Returns

e is [unknown]