Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/dtils/mod.ts>SafeUnknownArray#map

The best unofficial library of utilities for Deno applications
Go to Latest
method SafeUnknownArray.prototype.map
import { SafeUnknownArray } from "https://deno.land/x/dtils@2.4.0/mod.ts";

Calls fn on each item in the array, returning a new array made up of the results of fn

Parameters

fn: (value: SafeUnknown, index: number) => T