Version 1
[yaffs-website] / node_modules / grunt-legacy-log / node_modules / lodash / utility / identity.js
diff --git a/node_modules/grunt-legacy-log/node_modules/lodash/utility/identity.js b/node_modules/grunt-legacy-log/node_modules/lodash/utility/identity.js
new file mode 100644 (file)
index 0000000..3a1d1d4
--- /dev/null
@@ -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;