mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-31 15:27:50 +00:00
16 lines
307 B
JavaScript
16 lines
307 B
JavaScript
var Hash = require('./_Hash'),
|
|
Map = require('./_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 };
|
|
}
|
|
|
|
module.exports = mapClear;
|