_listCacheClear.js 218 B

1234567891011121314
  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;