With timeouts, I can do something like
let x = setTimeout(func, 0);
clearTimeout(x);
Is there a way to do something like
let x = document.addEventListener("click", func);
clearEventListener(x);
I can't seem to ever find a straightforward way of doing this and it comes up quite often.