Created
July 26, 2016 04:09
-
-
Save codemilli/801d3ac5d626ded0d7f0fa3933dcb4b5 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 arr = [1, 2, 3, 4, 5, 6]; | |
var filteredArr = arr.filter(function(item) { | |
return item % 2 === 0; | |
}); | |
var mappedFilteredArr = filteredArr.map(function (item) { | |
return item * 2; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment