A function that does nothing but return the parameter supplied to it. Good as a default or placeholder function.
identity(1); //=> 1 const obj = {}; identity(obj) === obj; //=> true
The value to return.
The input value, x.
x
Generated using TypeDoc
A function that does nothing but return the parameter supplied to it. Good as a default or placeholder function.