JavaScript -Classlist zu Array

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