Returns a function that always returns the same value.
const alwaysFoo = always("foo");const fillWithFoo = map(alwaysFoo);fillWithFoo([0, 1, 2]); // ["foo", "foo", "foo"]
Function that always return the given value.
Returns a function that always returns the same value.
Example
Returns
Function that always return the given value.