Selects all pre-comps in the active comp.
Select your composition and click the "Select Precomps" button. This will select all the compositions within your active composition.
<aside>
⌨️ Shift
+ click
selects all layers except pre-comps
</aside>