Ohm-Management - Projektarbeit B-ME
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

_cacheHas.js 337B

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. module.exports = cacheHas;