Last active
August 29, 2015 14:22
-
-
Save dferber90/02028ab5a5ac9577401e to your computer and use it in GitHub Desktop.
Versions Parsing in ES6, Attempt 1
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
// ES6 | |
const versionsMap = new Map(); | |
lines.forEach((line) => { | |
const [name, version] = line.split(‘@’); // destructuring | |
versionsMap.set(name, version); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment