aboutsummaryrefslogtreecommitdiff
path: root/node_modules/lodash/_cacheHas.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/lodash/_cacheHas.js')
-rw-r--r--node_modules/lodash/_cacheHas.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/node_modules/lodash/_cacheHas.js b/node_modules/lodash/_cacheHas.js
new file mode 100644
index 0000000..2dec892
--- /dev/null
+++ b/node_modules/lodash/_cacheHas.js
@@ -0,0 +1,13 @@
+/**
+ * Checks if a `cache` value for `key` exists.
+ *
+ * @private
+ * @param {Object} cache The cache to query.
+ * @param {string} key The key of the entry to check.
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
+ */
+function cacheHas(cache, key) {
+ return cache.has(key);
+}
+
+module.exports = cacheHas;