_listCacheClear.js 218 B

12345678910111213
  1. /**
  2. * Removes all key-value entries from the list cache.
  3. *
  4. * @private
  5. * @name clear
  6. * @memberOf ListCache
  7. */
  8. function listCacheClear() {
  9. this.__data__ = [];
  10. this.size = 0;
  11. }
  12. module.exports = listCacheClear;