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

x/rimbu/graph/custom/index.ts>GraphElement.getLinkElement

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

Returns the element at the given key in the graph element e, if the element is a Link element, or returns the given otherwise value otherwise.

Parameters

  • the graph element
key: 0 | 1
  • the link key

Returns

N | undefined