Version 1
[yaffs-website] / node_modules / grunt-uncss / node_modules / lodash / _cacheHas.js
diff --git a/node_modules/grunt-uncss/node_modules/lodash/_cacheHas.js b/node_modules/grunt-uncss/node_modules/lodash/_cacheHas.js
new file mode 100644 (file)
index 0000000..2dec892
--- /dev/null
@@ -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;