Version 1
[yaffs-website] / node_modules / grunt-legacy-log / node_modules / lodash / internal / mapDelete.js
diff --git a/node_modules/grunt-legacy-log/node_modules/lodash/internal/mapDelete.js b/node_modules/grunt-legacy-log/node_modules/lodash/internal/mapDelete.js
new file mode 100644 (file)
index 0000000..8b7fd53
--- /dev/null
@@ -0,0 +1,14 @@
+/**
+ * Removes `key` and its value from the cache.
+ *
+ * @private
+ * @name delete
+ * @memberOf _.memoize.Cache
+ * @param {string} key The key of the value to remove.
+ * @returns {boolean} Returns `true` if the entry was removed successfully, else `false`.
+ */
+function mapDelete(key) {
+  return this.has(key) && delete this.__data__[key];
+}
+
+module.exports = mapDelete;