I am a passionate full stack developer. I develop primarily using JS specifically TS. I prefer functional programming. I like exploring latest languages and frameworks.
setTimeout doesnot return a promise. The solution provided in this article is for promises. So you have to convert the setTimeout to promise. Once I change the below function, I get the correct result.
Hi @devscover ,
setTimeout
doesnot return a promise. The solution provided in this article is for promises. So you have to convert thesetTimeout
to promise. Once I change the below function, I get the correct result.