UNPKG

vue-app-sdk

Version:
22 lines (21 loc) 881 B
"use strict"; Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } }); const _mapCacheClear = require("./_mapCacheClear.cjs"); const _mapCacheDelete = require("./_mapCacheDelete.cjs"); const _mapCacheGet = require("./_mapCacheGet.cjs"); const _mapCacheHas = require("./_mapCacheHas.cjs"); const _mapCacheSet = require("./_mapCacheSet.cjs"); function MapCache(entries) { var index = -1, length = entries == null ? 0 : entries.length; this.clear(); while (++index < length) { var entry = entries[index]; this.set(entry[0], entry[1]); } } MapCache.prototype.clear = _mapCacheClear.default; MapCache.prototype["delete"] = _mapCacheDelete.default; MapCache.prototype.get = _mapCacheGet.default; MapCache.prototype.has = _mapCacheHas.default; MapCache.prototype.set = _mapCacheSet.default; exports.default = MapCache;