Sha256: 17b496486d5dcd0e8c07741e18291516d52f5a9b04ebe1160ec956e457ae7f6f
Contents?: true
Size: 846 Bytes
Versions: 49
Compression:
Stored size: 846 Bytes
Contents
export var FastMap = /*@__PURE__*/ (/*@__PURE__*/ function () { function FastMap() { this.values = {}; } FastMap.prototype.delete = function (key) { this.values[key] = null; return true; }; FastMap.prototype.set = function (key, value) { this.values[key] = value; return this; }; FastMap.prototype.get = function (key) { return this.values[key]; }; FastMap.prototype.forEach = function (cb, thisArg) { var values = this.values; for (var key in values) { if (values.hasOwnProperty(key) && values[key] !== null) { cb.call(thisArg, values[key], key); } } }; FastMap.prototype.clear = function () { this.values = {}; }; return FastMap; }()); //# sourceMappingURL=FastMap.js.map
Version data entries
49 entries across 49 versions & 4 rubygems