Module

x/rambda/immutable.d.ts>innerJoin

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

It returns a new list by applying a predicate function to all elements of list1 and list2 and keeping only these elements where predicate returns true.

Parameters

pred: (a: T1, b: T2) => boolean

Returns

(list1: readonly T1[], list2: readonly T2[]) => readonly T1[]

Parameters

pred: (a: T1, b: T2) => boolean
list1: readonly T1[]

Returns

(list2: readonly T2[]) => readonly T1[]

Parameters

pred: (a: T1, b: T2) => boolean
list1: readonly T1[]
list2: readonly T2[]

Returns

readonly T1[]