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

x/rambda/files/index.d.ts>juxt

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

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[]