The assignedSlot of Slottable for JS returns the result of the slot.
assignedSlot
Web Hypertext Application Technology Working Group (WHATWG)