Lodash identity method
语法
This method returns the first argument it receives.
参数
value(*) − Any value.
输出
(*) − Returns value.
实例
var _ = require('lodash');
var object = { 'a': 2 };
console.log(_.identity(object) === object);
Save the above program in
tester.js. Run the following command to execute this program.
Command
输出