The roster's primary detachment — the first in source order. 11th
edition rosters may field several detachments under a detachment-point cap,
but single-detachment consumers (and every pre-11e list) just want "the"
detachment. This names that choice so callers stop reaching into
detachments[0] directly. Returns undefined only when the roster carries
no detachment at all (the source declared none, or none parsed).
The roster's primary detachment — the first in source order. 11th edition rosters may field several detachments under a detachment-point cap, but single-detachment consumers (and every pre-11e list) just want "the" detachment. This names that choice so callers stop reaching into
detachments[0]directly. Returnsundefinedonly when the roster carries no detachment at all (the source declared none, or none parsed).