DEV Community

Discussion on: Simplify code by promisifying `setTimeout`

Collapse
 
markwitt_me profile image
Mark Witt

Change setTimeout(resolve, time) to setTimeout(resolve, time * 1000)

Collapse
 
darkwiiplayer profile image
𒎏Wii 🏳️‍⚧️

Yes, thanks but I was already well aware of how to convert milliseconds to seconds ;D