Which one is more performant?
const closest = settings?.ranks?.length ? settings?.ranks?.sort((a, b) => a.invites - b.invites).find(({ invites