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

x/rambda/immutable.d.ts>juxt

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

It applies list of function to a list of inputs.

Type Parameters

A extends readonly any[]
R1

Parameters

fns: readonly [(...a: A) => R1]

Returns

(...a: A) => readonly [R1]

Type Parameters

A extends readonly any[]
R1
R2

Parameters

fns: readonly [(...a: A) => R1, (...a: A) => R2]

Returns

(...a: A) => readonly [R1, R2]

Type Parameters

A extends readonly any[]
R1
R2
R3

Parameters

fns: readonly [(...a: A) => R1, (...a: A) => R2, (...a: A) => R3]

Returns

(...a: A) => readonly [R1, R2, R3]

Type Parameters

A extends readonly any[]
R1
R2
R3
R4

Parameters

fns: readonly
[
(...a: A) => R1,
(...a: A) => R2,
(...a: A) => R3,
(...a: A) => R4,
]

Returns

(...a: A) => readonly
[
R1,
R2,
R3,
R4,
]

Type Parameters

A extends readonly any[]
R1
R2
R3
R4
R5

Parameters

fns: readonly
[
(...a: A) => R1,
(...a: A) => R2,
(...a: A) => R3,
(...a: A) => R4,
(...a: A) => R5,
]

Returns

(...a: A) => readonly
[
R1,
R2,
R3,
R4,
R5,
]

Type Parameters

A extends readonly any[]
U

Parameters

fns: ReadonlyArray<(...args: A) => U>

Returns

(...args: A) => readonly U[]