Created
January 31, 2018 17:06
-
-
Save jarbaspsf/32ca463f0896984e0f6179519c746d3f to your computer and use it in GitHub Desktop.
exemplo filter ES6
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
let numeros = [1,2,3,4,5,6,7,8,9,10]; | |
let pares = numeros.filter(n => n%2 == 0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment