I will welcome ".include(a)" into my code in place of the awkward ".indexOf(a)!== -1".
Better late than never, I guess.
"Contains" is used everywhere else - the DOM API included (Element.classList.contains).
~array.indexOf(a)
https://www.joezimjs.com/javascript/great-mystery-of-the-til...