Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function getGroupedItemUses(key)
{
let total = 0;
for (const key2 in pm.item_uses)
{
if (key === key2 || constants.item_groups.some((g) => {
return (key in g) && (key2 in g);
}))
{
total += pm.item_uses[key];
}
}
return total;
}
return {