Skip to content

Instantly share code, notes, and snippets.

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