Module

x/rambda/rambda.js>uniqBy

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

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[]