a zip code crypto-currency system good for red ONLY

FastMap.js 846B

123456789101112131415161718192021222324252627282930
  1. export var FastMap = /*@__PURE__*/ (/*@__PURE__*/ function () {
  2. function FastMap() {
  3. this.values = {};
  4. }
  5. FastMap.prototype.delete = function (key) {
  6. this.values[key] = null;
  7. return true;
  8. };
  9. FastMap.prototype.set = function (key, value) {
  10. this.values[key] = value;
  11. return this;
  12. };
  13. FastMap.prototype.get = function (key) {
  14. return this.values[key];
  15. };
  16. FastMap.prototype.forEach = function (cb, thisArg) {
  17. var values = this.values;
  18. for (var key in values) {
  19. if (values.hasOwnProperty(key) && values[key] !== null) {
  20. cb.call(thisArg, values[key], key);
  21. }
  22. }
  23. };
  24. FastMap.prototype.clear = function () {
  25. this.values = {};
  26. };
  27. return FastMap;
  28. }());
  29. //# sourceMappingURL=FastMap.js.map