0e0bb6b503e6e1fdfa2d7e5c052a3dadb22522fff6489310c893c3e40e77d12a70a72a5856976661166dd591b23245f99e14064646b13fda36e201be8ef530 393 B

123456789101112131415161718192021
  1. var Hash = require('./_Hash'),
  2. ListCache = require('./_ListCache'),
  3. Map = require('./_Map');
  4. /**
  5. * Removes all key-value entries from the map.
  6. *
  7. * @private
  8. * @name clear
  9. * @memberOf MapCache
  10. */
  11. function mapCacheClear() {
  12. this.size = 0;
  13. this.__data__ = {
  14. 'hash': new Hash,
  15. 'map': new (Map || ListCache),
  16. 'string': new Hash
  17. };
  18. }
  19. module.exports = mapCacheClear;