The assign() method of the HTMLSlotElement interface sets the slot's manually assigned nodes to an ordered set of slottables.
assign()
MDN Reference