Skip to main content
Module

x/rambda/index.d.ts>uniqWith

Faster and smaller alternative to Ramda
Go to Latest
function uniqWith
import { uniqWith } from "https://deno.land/x/rambda@v7.0.1/index.d.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[]