Files
lodash/identity.js
John-David Dalton 8bff780a94 Bump to v4.3.0.
2016-02-08 00:50:21 -08:00

21 lines
347 B
JavaScript

/**
* This method returns the first argument given to it.
*
* @static
* @memberOf _
* @category Util
* @param {*} value Any value.
* @returns {*} Returns `value`.
* @example
*
* var object = { 'user': 'fred' };
*
* _.identity(object) === object;
* // => true
*/
function identity(value) {
return value;
}
export default identity;