cara menghapus kelas di semua saudara javascript

const setActive = el => {
    [...el.parentElement.children].forEach(sib => sib.classList.remove('active'))
    el.classList.add('active')
    }
Stupid Stoat