diff options
Diffstat (limited to 'deps/npm/node_modules/lodash/utility/identity.js')
-rw-r--r-- | deps/npm/node_modules/lodash/utility/identity.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/deps/npm/node_modules/lodash/utility/identity.js b/deps/npm/node_modules/lodash/utility/identity.js new file mode 100644 index 0000000000..3a1d1d4c9c --- /dev/null +++ b/deps/npm/node_modules/lodash/utility/identity.js @@ -0,0 +1,20 @@ +/** + * 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; |