Files
lodash/_mapCacheClear.js
John-David Dalton 0b9ddff408 Bump to v4.16.0.
2016-09-17 22:24:52 -07:00

21 lines
397 B
JavaScript

define(['./_Hash', './_ListCache', './_Map'], function(Hash, ListCache, 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
};
}
return mapCacheClear;
});