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

x/rambda/mod.ts>uniqWith

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

It returns a new array containing only one copy of each element in list according to predicate function.

This predicate should return true, if two elements are equal.

Parameters

predicate: (x: T, y: T) => boolean
list: T[]

Parameters

predicate: (x: T, y: T) => boolean

Returns

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