typeStatsCount = {
const combos = [];
for (const type of types) {
for (const stat of statNames) {
const bestCount = statPokedex.filter((mon) => {
return mon.types.includes(type) && bestStats(mon).includes(stat);
}).length;
const worstCount = statPokedex.filter((mon) => {
return mon.types.includes(type) && worstStats(mon).includes(stat);
}).length;
combos.push({
type,
stat,
bestCount,
worstCount
});
}
}
return combos
}