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

x/rambda/immutable.d.ts>difference

Faster and smaller alternative to Ramda
Latest
function difference
import { difference } from "https://deno.land/x/rambda@9.4.1/immutable.d.ts";

It returns the uniq set of all elements in the first list a not contained in the second list b.

R.equals is used to determine equality.

Parameters

a: readonly T[]
b: readonly T[]

Returns

readonly T[]

Parameters

a: readonly T[]

Returns

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