Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/rambda/immutable.d.ts>intersection

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

It loops through listA and listB and returns the intersection of the two according to R.equals.

Parameters

listA: readonly T[]
listB: readonly T[]

Returns

readonly T[]

Parameters

listA: readonly T[]

Returns

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