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

x/velo/src/utils/pointer_list.ts>PointerList#prevOf

A high-performance caching library for Deno. Supports LRU, LFU, ARC, and TinyLFU.
Latest
method PointerList.prototype.prevOf
import { PointerList } from "https://deno.land/x/velo@1.0.0/src/utils/pointer_list.ts";

Returns the the previous element of a given reference pointer. If the previous element would be the element before root undefined is returned.

Parameters

pointer: number

The reference pointer

Returns

number | undefined

the previous pointer or undefined if it would be prev[root]