Skip to content

Instantly share code, notes, and snippets.

@liondancer
Created January 30, 2017 03:08
Show Gist options
  • Save liondancer/1b3793524c5e1f3cf8afa87053a7fcc7 to your computer and use it in GitHub Desktop.
Save liondancer/1b3793524c5e1f3cf8afa87053a7fcc7 to your computer and use it in GitHub Desktop.
const innerWhileLoop = () => {
if (i <= j) {
i++;
// continue
innerWhileLoop();
} else {
// stop iteration
new Promise.resolve();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment