mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-24 02:03:01 +02:00
Stock transactions can now influence forecast in addition to price. Several more minor bug/UI fixes
This commit is contained in:
@@ -9,8 +9,19 @@ export function compareArrays<T>(a1: T[], a2: T[]) {
|
||||
return false;
|
||||
}
|
||||
|
||||
for (let i: number = 0; i < a1.length; ++i) {
|
||||
if (a1[i] !== a2[i]) {
|
||||
for (let i = 0; i < a1.length; ++i) {
|
||||
if (Array.isArray(a1[i])) {
|
||||
// If the other element is not an array, then these cannot be equal
|
||||
if (!Array.isArray(a2[i])) {
|
||||
return false;
|
||||
}
|
||||
|
||||
const elem1 = <any[]><any>a1[i];
|
||||
const elem2 = <any[]><any>a2[i];
|
||||
if (!compareArrays(elem1, elem2)) {
|
||||
return false;
|
||||
}
|
||||
} else if (a1[i] !== a2[i]) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user