Created
October 7, 2016 05:52
-
-
Save erikccoder/f2221d269c6c6b7260235ae4d1f15935 to your computer and use it in GitHub Desktop.
create a promise which will resolve after given ms.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let delay = ms => new Promise(r => setTimeout(r, ms)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment