Files
lodash/_mapCacheClear.js
John-David Dalton 07c844053e Bump to v4.12.0.
2016-05-08 12:23:20 -07:00

21 lines
365 B
JavaScript

import Hash from './_Hash';
import ListCache from './_ListCache';
import Map from './_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
};
}
export default mapCacheClear;