import { Collection } from "https://deno.land/x/revoltio@v1.0.0/deps.ts";
Maps each item to another value into an array. Identical in behavior to Array.map().
Examples
collection.map(user => user.tag);
collection.map(user => user.tag);
Parameters
fn: () => T
value: V,
key: K,
collection: this,
Function that produces an element of the new array, taking three arguments