Module: Permutation
Type Aliases
BinaryFunction
Ƭ BinaryFunction: (a
: any
, b
: any
) => any
Type declaration
▸ (a
, b
): any
Parameters
Name | Type |
---|---|
a | any |
b | any |
Returns
any
FirstParameter
Ƭ FirstParameter<Function
>: Parameters
<Function
>[0
]
Type parameters
Name | Type |
---|---|
Function | extends VariadicFunction |
SecondParameter
Ƭ SecondParameter<Function
>: Parameters
<Function
>[1
]
Type parameters
Name | Type |
---|---|
Function | extends VariadicFunction |
TernaryFunction
Ƭ TernaryFunction: (a
: any
, b
: any
, c
: any
) => any
Type declaration
▸ (a
, b
, c
): any
Parameters
Name | Type |
---|---|
a | any |
b | any |
c | any |
Returns
any
ThirdParameter
Ƭ ThirdParameter<Function
>: Parameters
<Function
>[2
]
Type parameters
Name | Type |
---|---|
Function | extends VariadicFunction |
Functions
permutation2
▸ permutation2<Function
>(fn
, shouldCurry?
): VariadicFunction
Type parameters
Name | Type |
---|---|
Function | extends BinaryFunction |
Parameters
Name | Type |
---|---|
fn | Function |
shouldCurry? | (a : FirstParameter <Function > | SecondParameter <Function >, b : undefined | SecondParameter <Function >) => boolean |
Returns
permutation3
▸ permutation3<Function
>(fn
, shouldCurry?
): VariadicFunction
Type parameters
Name | Type |
---|---|
Function | extends TernaryFunction |
Parameters
Name | Type |
---|---|
fn | Function |
shouldCurry? | (a : FirstParameter <Function > | SecondParameter <Function >, b : SecondParameter <Function > | ThirdParameter <Function >, c : undefined | ThirdParameter <Function >) => boolean |