fx-flow v0.7.0 / pipe/strict / always
Function: always()
always<
A
>(args
): (...args
) =>A
Return a function that returns the given value.
Type parameters
• A
Parameters
• args: A
Returns
Function
Parameters
• ...args: unknown
[]
Returns
A
Example
typescript
console.log(filter([1, 2, 3, 4], always(true))) // [1, 2, 3, 4]