Returns a function that always returns the given value. Note that for non-primitives the value returned is a reference to the original value.
var t = always('Tee'); t(); //=> 'Tee'
The value to wrap in a function
Generated using TypeDoc
Returns a function that always returns the given value. Note that for non-primitives the value returned is a reference to the original value.