• File: _mapCacheClear.js
  • Full Path: /var/www/nodejs/callDir/node_modules/lodash/_mapCacheClear.js
  • Date Modified: 06/03/2024 5:11 PM
  • File size: 393 bytes
  • MIME-type: text/plain
  • Charset: utf-8
var Hash = require('./_Hash'),
    ListCache = require('./_ListCache'),
    Map = require('./_Map');

/**
 * Removes all key-value entries from the map.
 *
 * @private
 * @name clear
 * @memberOf MapCache
 */
function mapCacheClear() {
  this.size = 0;
  this.__data__ = {
    'hash': new Hash,
    'map': new (Map || ListCache),
    'string': new Hash
  };
}

module.exports = mapCacheClear;