kątowy lista klas dla elementu
// event => is your element
const isClassExist = event.target.classList.contains('someClass');
Envious Earthworm
// event => is your element
const isClassExist = event.target.classList.contains('someClass');