ships.default loadouts.Function.getDefaultLoadout - Elite-Dangerous-Almanac/Almanac-Core GitHub Wiki
@elite-dangerous-almanac/core / ships/default-loadouts / getDefaultLoadout
getDefaultLoadout(
shipSymbol):DefaultLoadout|null
Defined in: src/ships/default-loadouts.ts:78
Look up a hull's default module loadout by Frontier symbol, case-insensitively.
string
Hull symbol, e.g. "SideWinder". Leading/trailing whitespace
and case are ignored.
DefaultLoadout | null
The deeply frozen default loadout, or null when the hull is unknown.
If shipSymbol is present and not a string. A nullish value is
a miss, like any other unrecognised symbol.
import { getDefaultLoadout } from '@elite-dangerous-almanac/core/ships/default-loadouts';
getDefaultLoadout(' sidewinder ')?.symbol; // -> 'SideWinder'
getDefaultLoadout('not_a_ship'); // -> null