equipment.Function.sumPersonalEngineeringIngredients - Elite-Dangerous-Almanac/Almanac-Core GitHub Wiki
@elite-dangerous-almanac/core / equipment / sumPersonalEngineeringIngredients
sumPersonalEngineeringIngredients(...
recipes):PersonalEngineeringIngredient[]
Defined in: src/equipment/engineering.ts:31
Combine personal-engineering shopping lists by symbol.
...readonly readonly PersonalEngineeringIngredient[][]
Ingredient lists to add. Input records are not modified.
PersonalEngineeringIngredient[]
One mutable result record per symbol, in first-seen order.
import { sumPersonalEngineeringIngredients } from '@elite-dangerous-almanac/core/equipment/engineering';
sumPersonalEngineeringIngredients(
[{ symbol: 'graphene', count: 2 }],
[{ symbol: 'graphene', count: 5 }],
); // -> [{ symbol: 'graphene', count: 7 }]