Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/rimbu/graph/custom/index.ts>ValuedGraphElement.isSingleNode

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

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

Parameters

e: ValuedGraphElement<any, any>
  • the graph element

Returns

e is [unknown]