-
-
Save ilearnjavascript/472b992e9b855772c3b55571e1af3ca6 to your computer and use it in GitHub Desktop.
es6 - new methods - 8.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].findIndex(function(n) { | |
return n === 10; | |
}) // 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment