Returns a Promise for cleaner usage, provides a Promise chain helper function and can also be used as a pure function. The Promise will resolve instantly if the DOM is already ready.
TS Belt is a library for functional programming in TypeScript. It solves the problem of the existence of both undefined and null. TS Belt is inspired by the Belt module for ReScript/Reason.