Files
lodash/_mapCacheClear.js
John-David Dalton dbe6a9008c Bump to v4.12.0.
2016-05-08 12:30:27 -07:00

21 lines
376 B
JavaScript

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.__data__ = {
'hash': new Hash,
'map': new (Map || ListCache),
'string': new Hash
};
}
module.exports = mapCacheClear;