Skip to content

Instantly share code, notes, and snippets.

@souhe
Created November 20, 2018 20:11
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