Created
March 17, 2020 17:29
-
-
Save mpuz/89fbf5dd45159d5daa3abf74cc259eef to your computer and use it in GitHub Desktop.
es6 for in of usage
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
The for–in loop is for looping over object properties. | |
The for–of loop is for looping over data—like the values in an array. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment