All good points, thanks for considering! For those who do want this functionality, this is what I came up with in TS:
function getEquipment(): { [item: string]: number } {
const items = [...new Set(Slot.all().map((slot) => equippedItem(slot)))];
return items.reduce((obj, item) => {
if...