Skip to main content

@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

ParameterType
...fnsT[]

Returns

T

Source

packages/utils/src/fp.ts:15


not()

not<T>(...fns): T

Curry one or more functions, where all must returned falsy values

Type parameters

Type parameter
T extends AnyFn

Parameters

ParameterType
...fnsT[]

Returns

T

Source

packages/utils/src/fp.ts:6


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

ParameterType
...fnsT[]

Returns

T

Source

packages/utils/src/fp.ts:24