15 ms·Sleep Function in JavaScript1 points by tsl143 7y agospeedgoose 7y agoI think you can do setTimeout(resolve, ms) to have one fewer function.tsl143 7y agoDone, thanks :)