Created
February 13, 2019 16:03
-
-
Save mohnatus/3e9fceb564ddd651c5b58c5b1d677eea to your computer and use it in GitHub Desktop.
correct for-in loop with hasOwnProperty check
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
| for (var name in map) { | |
| if (map.hasOwnProperty(name)) { | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment