Last active
January 13, 2017 12:31
-
-
Save klinyecviktor/a20ad8465ce9961e8152e7f20649e30e to your computer and use it in GitHub Desktop.
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
var list = readList(); | |
var nextListItem = function() { | |
var item = list.pop(); | |
if (item) { | |
// process the list item... | |
nextListItem(); | |
} | |
}; | |
var nextListItem1 = function() { | |
var item = list.pop(); | |
if (item) { | |
// process the list item... | |
setTimeout(nextListItem1, 0); | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment