In SLDS there is a slds-has-divider_top-space
style that allows a separator to be displayed between groups of actions:
and this class can be specified in e.g. a lightning:menuItem
.
Is there any way to achieve a similar effect for the row actions of lightning:datatable that are setup via JavaScript i.e. to break up menus like this one: