equipment.Function.sumPersonalEngineeringIngredients - Elite-Dangerous-Almanac/Almanac-Core GitHub Wiki

@elite-dangerous-almanac/core / equipment / sumPersonalEngineeringIngredients

Function: sumPersonalEngineeringIngredients()

sumPersonalEngineeringIngredients(...recipes): PersonalEngineeringIngredient[]

Defined in: src/equipment/engineering.ts:31

Combine personal-engineering shopping lists by symbol.

Parameters

recipes

...readonly readonly PersonalEngineeringIngredient[][]

Ingredient lists to add. Input records are not modified.

Returns

PersonalEngineeringIngredient[]

One mutable result record per symbol, in first-seen order.

Example

import { sumPersonalEngineeringIngredients } from '@elite-dangerous-almanac/core/equipment/engineering';
sumPersonalEngineeringIngredients(
  [{ symbol: 'graphene', count: 2 }],
  [{ symbol: 'graphene', count: 5 }],
); // -> [{ symbol: 'graphene', count: 7 }]
⚠️ **GitHub.com Fallback** ⚠️