项目原始demo,不改动
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
Questo repository è archiviato. Puoi vedere i file e clonarli, ma non puoi effettuare richieste di pushj o aprire problemi/richieste di pull.
 
 
 
 

14 righe
337 B

  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;