UNPKG

acud

Version:

acg react 组件库

21 lines • 573 B
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck"; import _createClass from "@babel/runtime/helpers/esm/createClass"; // Firefox has low performance of map. var CacheMap = /*#__PURE__*/function () { function CacheMap() { _classCallCheck(this, CacheMap); this.maps = Object.create(null); } return _createClass(CacheMap, [{ key: "set", value: function set(key, value) { this.maps[key] = value; } }, { key: "get", value: function get(key) { return this.maps[key]; } }]); }(); export default CacheMap;