Returns a function that always returns x.
x
constant(42)('anything')// => 42 Copy
constant(42)('anything')// => 42
Generated using TypeDoc
Returns a function that always returns
x
.