I’m sure you can find other polyfills and ponyfills doing the same thing.
I’ve made this to make it dependancy free, fully tested in browsers, already transpiled for older environments and without sacrificing spec compliance.
Sure, whatever floats your boat :D
I’ve made this to make it dependancy free, fully tested in browsers, already transpiled for older environments and without sacrificing spec compliance.
I also used same approach, but this is now standardized and has aborting support via `AbortController`.
Plus, if you need `setInterval`, it’s not that trivial.