Created
April 20, 2020 19:00
-
-
Save ecaepsey/c9da83b9615dfb3a485925f677511d0f to your computer and use it in GitHub Desktop.
continue example
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
const userNames = ['petya', 'vasya', 'evgeny']; | |
const result = []; | |
for (const name of userNames) { | |
if (name === 'vasya') { | |
continue | |
; | |
} | |
result.push(name); | |
} | |
console.log(result); // => ['petya', 'evgeny'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment