Skip to content

Instantly share code, notes, and snippets.

@FlameWolf
Last active September 1, 2022 16:28
Show Gist options
  • Save FlameWolf/cd282872fdf9afa5b501b26c7aedce64 to your computer and use it in GitHub Desktop.
Save FlameWolf/cd282872fdf9afa5b501b26c7aedce64 to your computer and use it in GitHub Desktop.
setImmediate polyfill
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