@terascope/utils / fp
fp
Functions
and()
and<
T
>(...fns
):T
Curry one or more functions, where all must returned truthy values
Type parameters
Type parameter |
---|
T extends AnyFn |
Parameters
Parameter | Type |
---|---|
...fns | T [] |
Returns
T
Source
not()
not<
T
>(...fns
):T
Curry one or more functions, where all must returned falsy values
Type parameters
Type parameter |
---|
T extends AnyFn |
Parameters
Parameter | Type |
---|---|
...fns | T [] |
Returns
T
Source
or()
or<
T
>(...fns
):T
Curry one or more functions, where one must returned a truthy value
Type parameters
Type parameter |
---|
T extends AnyFn |
Parameters
Parameter | Type |
---|---|
...fns | T [] |
Returns
T