Created
December 30, 2018 02:22
-
-
Save zeptobook/9fb9feb91fb130ab40718252eb0f8ada to your computer and use it in GitHub Desktop.
array.find()
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 firstNum = nums.find(function(value){ | |
return value > 30 | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment