Created
December 29, 2018 23:52
-
-
Save zeptobook/fb6d6303f83640df1f029f4590b2fd5d to your computer and use it in GitHub Desktop.
Array.filter()
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 numbers = [50, 25, 40, 16, 29]; | |
var numOver30 = numbers.filter(function(value, index, array){ | |
return value > 30; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment