You can polyfill promises using any of the popular polyfills. You can also provide a promise implementation to confetti
through
this property.
This method creates an instance of the confetti function that uses a custom canvas.
Generated using TypeDoc
Stops the animation and clears all confetti, as well as immediately resolves any outstanding promises.