Share your code. Components are building blocks, you are the architect.

utils/always
v1.1.0
1.1.0
1.0.0
MIT
PUBLIC
3
1     DEPENDENCIES
Build: fail
BuildFail
Build Status: fail
Returns a function that always returns the given value

Please configure Bit as a scoped registry to install components with NPM.Learn more

npm config set '@bit:registry' https://node.bitsrc.io
Use utils/always in your project
npm i @bit/bit.ramda.utils.always
Copied

always (val:*) : Function

Returns a function that always returns the given value. Note that for non-primitives the value returned is a reference to the original value.

This function is known as const, constant, or K (for K combinator) in other languages and libraries.

Example

var t = R.always('Tee');
     t(); //=> 'Tee'

Argument

val: *

The value to wrap in a function

Returns

Function

A Function :: * -> val.