1 | import mapCacheClear from './_mapCacheClear.js';
|
2 | import mapCacheDelete from './_mapCacheDelete.js';
|
3 | import mapCacheGet from './_mapCacheGet.js';
|
4 | import mapCacheHas from './_mapCacheHas.js';
|
5 | import mapCacheSet from './_mapCacheSet.js';
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 | function MapCache(entries) {
|
15 | var index = -1,
|
16 | length = entries == null ? 0 : entries.length;
|
17 |
|
18 | this.clear();
|
19 | while (++index < length) {
|
20 | var entry = entries[index];
|
21 | this.set(entry[0], entry[1]);
|
22 | }
|
23 | }
|
24 |
|
25 |
|
26 | MapCache.prototype.clear = mapCacheClear;
|
27 | MapCache.prototype['delete'] = mapCacheDelete;
|
28 | MapCache.prototype.get = mapCacheGet;
|
29 | MapCache.prototype.has = mapCacheHas;
|
30 | MapCache.prototype.set = mapCacheSet;
|
31 |
|
32 | export default MapCache;
|