@scania/tegel
Version:
Tegel Design System
1 lines • 314 B
JavaScript
function n(t,e,l=!1){if(t instanceof HTMLElement&&e(t))return t;const r=t instanceof HTMLSlotElement?t.assignedElements({flatten:!0}):Array.from(t.children);l&&t instanceof HTMLElement&&t.shadowRoot&&r.push(...Array.from(t.shadowRoot.children));let a=null;return r.some((t=>(a=n(t,e,l),null!==a))),a}export{n as d}