Created
December 30, 2018 02:41
-
-
Save zeptobook/cbb20df9894760921aaf47895b9277d8 to your computer and use it in GitHub Desktop.
array.findIndex()
This file contains 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
var nums = [10, 20, 30, 40, 50]; | |
var findNumIndex = nums.findIndex(function(value){ | |
return value > 30 | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment