This commit is contained in:
Renan LE CARO 2025-03-23 16:11:12 +01:00
parent 2022b41937
commit a89a61e35b
12 changed files with 212 additions and 182 deletions

View file

@ -1,8 +1,6 @@
import { Ball, GameState, PerkId, PerksMap } from "./types";
import { icons, upgrades } from "./loadGameData";
export function getMajorityValue(arr: string[]): string {
const count: { [k: string]: number } = {};
arr.forEach((v) => (count[v] = (count[v] || 0) + 1));