Files
discord-decomp/_bundle/Module1179.js
T
2026-11-01 12:12:55 +02:00

17 lines
421 B
JavaScript

// Metro module 1179 (f1180).
export function mergeOutcomes(...args) {
const map = new Map();
let c12880_0 = map;
const process2 = (a0) => {
const r9 = `${a0.reason}:${a0.category}`;
const r13 = c12880_0.get(r9);
if (r13) {
r13.quantity = r13.quantity + a0.quantity;
} else {
c12880_0.set(r9, a0);
}
};
args.forEach((arg) => arg.forEach(process2));
return [...map.values()];
}