Function: always()

always<T>(value): () => T

returns a function which when called always returns the passed value

Type parameters

Type parameter
T

Parameters

ParameterType
valueT

Returns

Function

Returns

T