Created
November 20, 2018 20:11
-
-
Save souhe/6610aaace7b263f9e13108df644056cc to your computer and use it in GitHub Desktop.
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 data = [1, 3, 5, 2, 0, 4]; | |
let betterData = data | |
.filter(a => a !== 0) | |
.map(a => a * 2) | |
.map(a => a.toString()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment