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