SyntaxFix
Write A Post
Hire A Developer
Questions
const setTimeoutAsync = (cb, delay) => new Promise((resolve) => { setTimeout(() => { resolve(cb()); }, delay); });
We can pass custom 'cb fxn' like this one