Last active
September 1, 2022 16:28
-
-
Save FlameWolf/cd282872fdf9afa5b501b26c7aedce64 to your computer and use it in GitHub Desktop.
setImmediate polyfill
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
globalThis.setImmediate = globalThis.setImmediate || function (callback) { | |
return setTimeout(callback, 0, ...Array.prototype.slice.apply(arguments, [1])); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment