Skip to main content
Module

x/ramda/mod.ts>uniqBy

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

Returns a new list containing only one copy of each element in the original list, based upon the value returned by applying the supplied function to each list element. Prefers the first item if the supplied function produces the same value on two items. R.equals is used for comparison.