Refactor for ... in loops

This commit is contained in:
nickofolas
2022-01-15 18:45:03 -06:00
parent d5c3d89613
commit ab841f7530
54 changed files with 128 additions and 130 deletions

View File

@@ -24,7 +24,7 @@ export class HashManager {
upgrades: IMap<number> = {};
constructor() {
for (const name in HashUpgrades) {
for (const name of Object.keys(HashUpgrades)) {
this.upgrades[name] = 0;
}
}
@@ -85,7 +85,7 @@ export class HashManager {
}
prestige(): void {
for (const name in HashUpgrades) {
for (const name of Object.keys(HashUpgrades)) {
this.upgrades[name] = 0;
}
this.hashes = 0;