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>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.1.0/graph/custom/common/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