Function: always

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

returns a function which when called always returns the passed value

Type parameters

Name
T

Parameters

NameType
valueT

Returns

fn

▸ (): T

Returns

T