Skip to content

Instantly share code, notes, and snippets.

@jarbaspsf
Created January 31, 2018 17:06
Show Gist options
  • Save jarbaspsf/32ca463f0896984e0f6179519c746d3f to your computer and use it in GitHub Desktop.
Save jarbaspsf/32ca463f0896984e0f6179519c746d3f to your computer and use it in GitHub Desktop.
exemplo filter ES6
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