bf26eddf2e461c941167f793c9094aa78334c478e4effe7efe6dad905ba742bdab2d305ef12328c003f405ebcc043a1a9a3fb97bb4b246fe635f7b9696a16a 335 B

12345678910111213
  1. /**
  2. * Checks if a `cache` value for `key` exists.
  3. *
  4. * @private
  5. * @param {Object} cache The cache to query.
  6. * @param {string} key The key of the entry to check.
  7. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  8. */
  9. function cacheHas(cache, key) {
  10. return cache.has(key);
  11. }
  12. export default cacheHas;