Skip to main content

Module: Permutation

Type Aliases

BinaryFunction

Ƭ BinaryFunction: (a: any, b: any) => any

Type declaration

▸ (a, b): any

Parameters
NameType
aany
bany
Returns

any


FirstParameter

Ƭ FirstParameter<Function>: Parameters<Function>[0]

Type parameters

NameType
Functionextends VariadicFunction

SecondParameter

Ƭ SecondParameter<Function>: Parameters<Function>[1]

Type parameters

NameType
Functionextends VariadicFunction

TernaryFunction

Ƭ TernaryFunction: (a: any, b: any, c: any) => any

Type declaration

▸ (a, b, c): any

Parameters
NameType
aany
bany
cany
Returns

any


ThirdParameter

Ƭ ThirdParameter<Function>: Parameters<Function>[2]

Type parameters

NameType
Functionextends VariadicFunction

Functions

permutation2

permutation2<Function>(fn, shouldCurry?): VariadicFunction

Type parameters

NameType
Functionextends BinaryFunction

Parameters

NameType
fnFunction
shouldCurry?(a: FirstParameter<Function> | SecondParameter<Function>, b: undefined | SecondParameter<Function>) => boolean

Returns

VariadicFunction


permutation3

permutation3<Function>(fn, shouldCurry?): VariadicFunction

Type parameters

NameType
Functionextends TernaryFunction

Parameters

NameType
fnFunction
shouldCurry?(a: FirstParameter<Function> | SecondParameter<Function>, b: SecondParameter<Function> | ThirdParameter<Function>, c: undefined | ThirdParameter<Function>) => boolean

Returns

VariadicFunction