Version 1
[yaffs-website] / node_modules / grunt-legacy-log / node_modules / lodash / internal / mapSet.js
diff --git a/node_modules/grunt-legacy-log/node_modules/lodash/internal/mapSet.js b/node_modules/grunt-legacy-log/node_modules/lodash/internal/mapSet.js
new file mode 100644 (file)
index 0000000..0434c3f
--- /dev/null
@@ -0,0 +1,18 @@
+/**
+ * Sets `value` to `key` of the cache.
+ *
+ * @private
+ * @name set
+ * @memberOf _.memoize.Cache
+ * @param {string} key The key of the value to cache.
+ * @param {*} value The value to cache.
+ * @returns {Object} Returns the cache object.
+ */
+function mapSet(key, value) {
+  if (key != '__proto__') {
+    this.__data__[key] = value;
+  }
+  return this;
+}
+
+module.exports = mapSet;