Returns the provided value unchanged.
This function is useful as a default iteratee or transformer function that simply returns the input value.
The type of the value.
The value to return.
const value = 42;const result = identity(value);// result will be 42 Copy
const value = 42;const result = identity(value);// result will be 42
Returns the provided value unchanged.
This function is useful as a default iteratee or transformer function that simply returns the input value.