mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-03 08:37:49 +00:00
Bump to v4.12.0.
This commit is contained in:
20
_mapCacheClear.js
Normal file
20
_mapCacheClear.js
Normal file
@@ -0,0 +1,20 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user