Skip to content

Instantly share code, notes, and snippets.

@bumsyalao
Created November 28, 2017 22:05
Show Gist options
  • Save bumsyalao/4f7eae3b32958cf7a00e8f83b752c1df to your computer and use it in GitHub Desktop.
Save bumsyalao/4f7eae3b32958cf7a00e8f83b752c1df to your computer and use it in GitHub Desktop.
Javascript For each

[1,2,3].forEach(a => { if (a == 3) { console.log('found')}});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment