identity source npm

_.identity(value)

This method returns the first argument provided to it.

Arguments

  1. value (*)

    Any value.

Returns (*)

Returns value.

Example

var object = { 'user': 'fred' };

_.identity(object) === object;
// => true