Module

x/rambda/index.d.ts>juxt

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

It applies list of function to a list of inputs.

Type Parameters

A extends any[]
R1

Parameters

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

Returns

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

Type Parameters

A extends any[]
R1
R2

Parameters

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

Returns

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

Type Parameters

A extends any[]
R1
R2
R3

Parameters

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

Returns

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

Type Parameters

A extends any[]
R1
R2
R3
R4

Parameters

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

Returns

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

Type Parameters

A extends any[]
R1
R2
R3
R4
R5

Parameters

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

Returns

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

Type Parameters

A extends any[]
U

Parameters

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

Returns

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