mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-03 08:37:49 +00:00
Remove identity module.
This commit is contained in:
19
identity.js
19
identity.js
@@ -1,19 +0,0 @@
|
||||
/**
|
||||
* This method returns the first argument it receives.
|
||||
*
|
||||
* @since 0.1.0
|
||||
* @category Util
|
||||
* @param {*} value Any value.
|
||||
* @returns {*} Returns `value`.
|
||||
* @example
|
||||
*
|
||||
* const object = { 'a': 1 };
|
||||
*
|
||||
* console.log(identity(object) === object);
|
||||
* // => true
|
||||
*/
|
||||
function identity(value) {
|
||||
return value;
|
||||
}
|
||||
|
||||
export default identity;
|
||||
Reference in New Issue
Block a user