Module

x/rambda/mod.ts>innerJoin

Faster and smaller alternative to Ramda
Go to Latest
function innerJoin
import { innerJoin } from "https://dotland.deno.dev/x/rambda@v9.2.0/mod.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: T1[], list2: T2[]) => T1[]

Parameters

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

Returns

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

Parameters

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