Files
lodash/.internal/mapCacheClear.js
2017-01-10 00:45:05 -08:00

21 lines
380 B
JavaScript

import Hash from './.internal/Hash.js';
import ListCache from './.internal/ListCache.js';
/**
* 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
};
}
export default mapCacheClear;