UNPKG

wretch

Version:

A tiny wrapper built around fetch with an intuitive syntax.

3 lines (2 loc) 394 B
var global,factory;global=this,factory=function(e){e.delay=e=>o=>(t,f)=>new Promise((l=>setTimeout((()=>l(o(t,f))),e)))},"object"==typeof exports&&"undefined"!=typeof module?factory(exports):"function"==typeof define&&define.amd?define(["exports"],factory):factory((global="undefined"!=typeof globalThis?globalThis:global||self).wretchDelayMiddleware={}); //# sourceMappingURL=delay.min.js.map