4.17.11
3.10.1
2.4.2
1.3.1

_.identity(value)

This method returns the first argument it receives.

Since

0.1.0

Arguments

argument
value
type
*
description
Any value.

Returns

(array)

Example

var object = { a: 1 };

console.log(
  _.identity(object) === object
);
// => true
var object = { a: 1 };

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