Skip to main content
Latest
method default.prototype.forEach
import { default } from "https://deno.land/x/lru_cache@6.0.0-deno.4/mod.ts";

Just like Array.prototype.forEach. Iterates over all the keys in the cache, in order of recent-ness. (Ie, more recently used items are iterated over first.)

Type Parameters

optional
T = this

Parameters

callbackFn: (
this: T,
value: V,
key: K,
cache: this,
) => void
optional
thisArg: T