Last change
on this file since ceaed42 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
393 bytes
|
Line | |
---|
1 | var Hash = require('./_Hash'),
|
---|
2 | ListCache = require('./_ListCache'),
|
---|
3 | Map = require('./_Map');
|
---|
4 |
|
---|
5 | /**
|
---|
6 | * Removes all key-value entries from the map.
|
---|
7 | *
|
---|
8 | * @private
|
---|
9 | * @name clear
|
---|
10 | * @memberOf MapCache
|
---|
11 | */
|
---|
12 | function mapCacheClear() {
|
---|
13 | this.size = 0;
|
---|
14 | this.__data__ = {
|
---|
15 | 'hash': new Hash,
|
---|
16 | 'map': new (Map || ListCache),
|
---|
17 | 'string': new Hash
|
---|
18 | };
|
---|
19 | }
|
---|
20 |
|
---|
21 | module.exports = mapCacheClear;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.