Skip to main content
Module

x/rambda/mod.ts>uniqBy

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