What is the alternative to setInterval() method

I want to avoid anyone accidentally clearing the timer for the mine setInterval timer.
and as of now, I have not found any solution to this.
So, I am checking for any alternative available in JS/web for the setInterval method to invoke code/function after a specific time.