mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-27 19:37:07 +02:00
Refactor for ... in loops
This commit is contained in:
@@ -42,7 +42,7 @@ export function processOrders(
|
||||
const orderBook = refs.stockMarket["Orders"];
|
||||
if (orderBook == null) {
|
||||
const orders: IOrderBook = {};
|
||||
for (const name in refs.stockMarket) {
|
||||
for (const name of Object.keys(refs.stockMarket)) {
|
||||
const stock = refs.stockMarket[name];
|
||||
if (!(stock instanceof Stock)) {
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user