Module

x/ultra/src/deps.ts>LRU#map

💎 Modern Streaming React Framework in Deno
Go to Latest
method LRU.prototype.map
import { LRU } from "https://dotland.deno.dev/x/ultra@v1.0.1/src/deps.ts";

Method creates a new array populated with the results of calling a provided function on every element in the calling array

Parameters

callbackfn: (
value: [string, T],
index: number,
array: [string, T][],
) => T

Function that is called for every element of arr. Each time callback executes, the returned value is added to new_array

optional
thisArg: unknown

Value to use as this when executing callback