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

utils/identity
v1.1.0
1.1.0
MIT
PUBLIC
3
Build: fail
BuildFail
Build Status: fail
A function that does nothing but return the parameter supplied to it

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/identity in your project
npm i @bit/bit.ramda.utils.identity
Copied

identity (x:*) : *

A function that does nothing but return the parameter supplied to it. Good as a default or placeholder function.

Example

R.identity(1); //=> 1

     var obj = {};
     R.identity(obj) === obj; //=> true

Argument

x: *

The value to return.

Returns

*

The input value, `x`.