Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download
80742 views
1
var mapDelete = require('./mapDelete'),
2
mapGet = require('./mapGet'),
3
mapHas = require('./mapHas'),
4
mapSet = require('./mapSet');
5
6
/**
7
* Creates a cache object to store key/value pairs.
8
*
9
* @private
10
* @static
11
* @name Cache
12
* @memberOf _.memoize
13
*/
14
function MapCache() {
15
this.__data__ = {};
16
}
17
18
// Add functions to the `Map` cache.
19
MapCache.prototype['delete'] = mapDelete;
20
MapCache.prototype.get = mapGet;
21
MapCache.prototype.has = mapHas;
22
MapCache.prototype.set = mapSet;
23
24
module.exports = MapCache;
25
26