@lodestar/prover
Version:
A Typescript implementation of the Ethereum Consensus light client
21 lines • 469 B
JavaScript
export class OrderedMap extends Map {
_min;
_max;
get min() {
return this._min;
}
get max() {
return this._max;
}
set(key, value) {
if (this._min === undefined || key < this._min) {
this._min = key;
}
if (this._max === undefined || key > this._max) {
this._max = key;
}
super.set(key, value);
return this;
}
}
//# sourceMappingURL=ordered_map.js.map