I need to see if an element is in another list or not but they are not in order and they are not equal size.
let list1 = [10 , 4 , 5]
let list 2 = [4 , 5]
I tried this but this only works if they are in same order.
  for(var i=0;i<=document.querySelectorAll('.datename').length;i++){
    if(document.querySelectorAll('.inputname')[i].value==document.querySelectorAll('.datename')[i].innerHTML){
        console.log(document.querySelectorAll('.other')[c].classList)
           document.querySelectorAll('.other')[c].classList.add('active2')
    }
}
 
     
     
    