Fix max stack exceeded
parent
d3e68c22f3
commit
d2afb82fdc
|
@ -166,7 +166,7 @@
|
||||||
const sorted = [];
|
const sorted = [];
|
||||||
for (const item of data) {
|
for (const item of data) {
|
||||||
total += item[1];
|
total += item[1];
|
||||||
sorted.push(...new Array(item[1]).fill(item[0]));
|
sorted.concat(new Array(item[1]).fill(item[0]));
|
||||||
}
|
}
|
||||||
medianWinRateOff[rarity] = (sorted[Math.round(sorted.length / 2)] * 100).toFixed(2);
|
medianWinRateOff[rarity] = (sorted[Math.round(sorted.length / 2)] * 100).toFixed(2);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue