Rinser/node_modules/lodash/utility/identity.js

21 lines
355 B
JavaScript
Raw Normal View History

2015-07-20 13:42:07 +00:00
/**
* This method returns the first argument provided to it.
*
* @static
* @memberOf _
* @category Utility
* @param {*} value Any value.
* @returns {*} Returns `value`.
* @example
*
* var object = { 'user': 'fred' };
*
* _.identity(object) === object;
* // => true
*/
function identity(value) {
return value;
}
module.exports = identity;