Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/rimbu/graph/custom/common/index.ts>ValuedGraphElement.getSingleNode

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

Returns the value of a single node graph element if the given element e is a single node, or the given otherwise fallback value otherwise.

Parameters

  • the graph element

Returns

N | undefined