mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 02:17:48 +00:00
Bump to v4.0.0.
This commit is contained in:
15
internal/mapClear.js
Normal file
15
internal/mapClear.js
Normal file
@@ -0,0 +1,15 @@
|
||||
define(['./Hash', './Map'], function(Hash, Map) {
|
||||
|
||||
/**
|
||||
* Removes all key-value entries from the map.
|
||||
*
|
||||
* @private
|
||||
* @name clear
|
||||
* @memberOf MapCache
|
||||
*/
|
||||
function mapClear() {
|
||||
this.__data__ = { 'hash': new Hash, 'map': Map ? new Map : [], 'string': new Hash };
|
||||
}
|
||||
|
||||
return mapClear;
|
||||
});
|
||||
Reference in New Issue
Block a user