aboutsummaryrefslogtreecommitdiff
path: root/node_modules/lodash/identity.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/lodash/identity.js')
-rw-r--r--node_modules/lodash/identity.js21
1 files changed, 21 insertions, 0 deletions
diff --git a/node_modules/lodash/identity.js b/node_modules/lodash/identity.js
new file mode 100644
index 0000000..2d5d963
--- /dev/null
+++ b/node_modules/lodash/identity.js
@@ -0,0 +1,21 @@
+/**
+ * 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;
+}
+
+module.exports = identity;