main
Last change
on this file since d565449 was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago |
Update repo after prototype presentation
|
-
Property mode
set to
100644
|
File size:
391 bytes
|
Line | |
---|
1 | import Hash from './_Hash.js';
|
---|
2 | import ListCache from './_ListCache.js';
|
---|
3 | import Map from './_Map.js';
|
---|
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 | export default mapCacheClear;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.