JavaScript ClassList do tablicy

li.classList.contains('main-nav')
Lioruby