Created
May 20, 2018 13:00
-
-
Save nairihar/535336c6b7aaceffb0df64931fb97720 to your computer and use it in GitHub Desktop.
for-of, Async Iterator in NodeJS v10, medium
This file contains hidden or 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
const arr = [4, 5, 6]; // iterable object | |
for (const v of arr) { // iterates over the arr | |
console.log(v); | |
} | |
// 4, 5, 6 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment