mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-03 16:47:49 +00:00
Bump to v3.0.0.
This commit is contained in:
24
internal/MapCache.js
Normal file
24
internal/MapCache.js
Normal file
@@ -0,0 +1,24 @@
|
||||
import mapDelete from './mapDelete';
|
||||
import mapGet from './mapGet';
|
||||
import mapHas from './mapHas';
|
||||
import mapSet from './mapSet';
|
||||
|
||||
/**
|
||||
* Creates a cache object to store key/value pairs.
|
||||
*
|
||||
* @private
|
||||
* @static
|
||||
* @name Cache
|
||||
* @memberOf _.memoize
|
||||
*/
|
||||
function MapCache() {
|
||||
this.__data__ = {};
|
||||
}
|
||||
|
||||
// Add functions to the `Map` cache.
|
||||
MapCache.prototype['delete'] = mapDelete;
|
||||
MapCache.prototype.get = mapGet;
|
||||
MapCache.prototype.has = mapHas;
|
||||
MapCache.prototype.set = mapSet;
|
||||
|
||||
export default MapCache;
|
||||
Reference in New Issue
Block a user