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.getLinkElement

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

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: K
  • the link key

Returns

ValuedLink<N, V>[K] | undefined