Created
June 4, 2018 08:54
-
-
Save nathan-lapinski/002d5cf632ec4c56992f3ef6038c008b to your computer and use it in GitHub Desktop.
Filtering arrays.
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
const arr = [1,2,3]; | |
const filteredArr = arr.filter(v => v % 2 === 0); // [2] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment