els[i].classList.split code example
Example 1: add multiple classList
element.classList.add(class1,class2,class3...);
Example 2: classList has class
if (document.body.classList.contains('thatClass')) {
// do some stuff
}
element.classList.add(class1,class2,class3...);
if (document.body.classList.contains('thatClass')) {
// do some stuff
}