genTypeData = {
const byGens = _.groupBy(pokedexList, (mon) => mon.gen);
const genCombos = []
for (const i of _.range(1, 10)) {
const mons = byGens[i]
genCombos[i] = i > 1 ? new Set(genCombos[i-1]) : new Set()
for (const mon of mons) {
genCombos[i].add(getTypeString(mon.types))
}
}
return genCombos.map((item, i) => ({ gen: i, count: item.size}));
}