Skip to main content
Module

x/ramda/mod.ts>indexBy

:ram: Practical functional Javascript
Latest
variable indexBy
import { indexBy } from "https://deno.land/x/ramda@v0.27.2/mod.ts";

Given a function that generates a key, turns a list of objects into an object indexing the objects by the given key. Note that if multiple objects generate the same value for the indexing key only the last value will be included in the generated object.

Acts as a transducer if a transformer is given in list position.