mirror of
https://github.com/fooflington/selfdefined.git
synced 2025-06-14 14:20:48 +00:00
update
This commit is contained in:
29
node_modules/rxjs/_esm5/util/FastMap.js
generated
vendored
Normal file
29
node_modules/rxjs/_esm5/util/FastMap.js
generated
vendored
Normal file
@ -0,0 +1,29 @@
|
||||
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
|
Reference in New Issue
Block a user