Function byStat

Picks an option based on your primestat

  • Type Parameters

    • S

    Parameters

    • options: Switch<StatType, S>

      An object keyed by stat; it must either contain all stats, or have a default parameter.

    • OptionalalternateSource: StatType | ((...args: never[]) => StatType)

      An optional alternate way of determining which Stat to choose by.

    Returns S

    The option corresponding to your primestat.