ohctechv3/.svn/pristine/9f/9fd36cb42bd2f26501d251bd3be79441c11e49d1.svn-base

22 lines
368 B
Plaintext
Raw Normal View History

2024-10-28 15:03:36 +05:30
/**
* This method returns the first argument it receives.
*
* @static
* @since 0.1.0
* @memberOf _
* @category Util
* @param {*} value Any value.
* @returns {*} Returns `value`.
* @example
*
* var object = { 'a': 1 };
*
* console.log(_.identity(object) === object);
* // => true
*/
function identity(value) {
return value;
}
export default identity;