Skip to content

Instantly share code, notes, and snippets.

@ilearnjavascript
Created March 27, 2019 23:19
Show Gist options
  • Save ilearnjavascript/c21942306b4d8d891ebf70f10a47c98d to your computer and use it in GitHub Desktop.
Save ilearnjavascript/c21942306b4d8d891ebf70f10a47c98d to your computer and use it in GitHub Desktop.
es6 - new methods - 6.js
[5, 1, 10, 8].find(function(n) {
return n === 10
}); // 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment