Module

x/rambda/immutable.d.ts>uniqBy

Faster and smaller alternative to Ramda
Go to Latest
function uniqBy
import { uniqBy } from "https://dotland.deno.dev/x/rambda@v9.2.0/immutable.d.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: readonly T[]

Returns

readonly T[]

Parameters

fn: (a: T) => U

Returns

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