Files
lodash/identity.js
John-David Dalton 3514f50902 Bump to v4.3.0.
2016-02-08 00:49:56 -08:00

24 lines
406 B
JavaScript

define([], function() {
/**
* 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;
}
return identity;
});