The groups.collapsed() method returns an array with collapsed concurrent event groups for the Scheduler row.
DayPilot.Row.groups.collapsed();
An array of group objects. The group object has expand() and collapse() methods which let you change the group state.
const collapsedGroups = dp.rows.find("A1").groups.collapsed();