-
-
Save ilearnjavascript/9e72043bfdf23037b65e9275010caab8 to your computer and use it in GitHub Desktop.
es6 - new methods - 7.js
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
[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