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

x/rambda/mod.ts>uniqBy

Faster and smaller alternative to Ramda
Latest
function uniqBy
import { uniqBy } from "https://deno.land/x/rambda@9.4.1/mod.ts";

It applies uniqueness to input list based on function that defines what to be used for comparison between elements.

R.equals is used to determine equality.

Parameters

fn: (a: T) => U
list: T[]

Parameters

fn: (a: T) => U

Returns

(list: T[]) => T[]