mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 00:57:48 +00:00
Bump to v4.12.0.
This commit is contained in:
19
_mapCacheClear.js
Normal file
19
_mapCacheClear.js
Normal file
@@ -0,0 +1,19 @@
|
||||
define(['./_Hash', './_ListCache', './_Map'], function(Hash, ListCache, 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
|
||||
};
|
||||
}
|
||||
|
||||
return mapCacheClear;
|
||||
});
|
||||
Reference in New Issue
Block a user