var songTimer = [0,12,49];
audio.addEventListener("timeupdate", function(){
if (songTimer.includes(audio.currentTime)) {
// do something
}
});
solved javascript: How to trigger an if statement when a variable equals a number in an array? [closed]