Version 1
[yaffs-website] / node_modules / grunt-legacy-util / node_modules / lodash / _hashSet.js
diff --git a/node_modules/grunt-legacy-util/node_modules/lodash/_hashSet.js b/node_modules/grunt-legacy-util/node_modules/lodash/_hashSet.js
new file mode 100644 (file)
index 0000000..f7c3307
--- /dev/null
@@ -0,0 +1,18 @@
+var nativeCreate = require('./_nativeCreate');
+
+/** Used to stand-in for `undefined` hash values. */
+var HASH_UNDEFINED = '__lodash_hash_undefined__';
+
+/**
+ * Sets the hash `key` to `value`.
+ *
+ * @private
+ * @param {Object} hash The hash to modify.
+ * @param {string} key The key of the value to set.
+ * @param {*} value The value to set.
+ */
+function hashSet(hash, key, value) {
+  hash[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
+}
+
+module.exports = hashSet;