mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-05-05 23:27:55 +02:00
Refactor for ... in loops
This commit is contained in:
@@ -5,7 +5,7 @@ export const TickerHeaderFormatData = {
|
||||
longestSymbol: 0,
|
||||
};
|
||||
|
||||
for (const key in StockSymbols) {
|
||||
for (const key of Object.keys(StockSymbols)) {
|
||||
TickerHeaderFormatData.longestName = Math.max(key.length, TickerHeaderFormatData.longestName);
|
||||
TickerHeaderFormatData.longestSymbol = Math.max(StockSymbols[key].length, TickerHeaderFormatData.longestSymbol);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user