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

std/collections/associate_by.ts

The Deno Standard Library
Latest
The Standard Library has been moved to JSR. See the blog post for details.
import * as mod from "https://deno.land/std@0.224.0/collections/associate_by.ts";

Functions

Transforms the given array into a Record, extracting the key of each element using the given selector. If the selector produces the same key for multiple elements, the latest one will be used (overriding the ones before it).