Skip to content

Instantly share code, notes, and snippets.

@dferber90
Last active August 29, 2015 14:22
Show Gist options
  • Save dferber90/02028ab5a5ac9577401e to your computer and use it in GitHub Desktop.
Save dferber90/02028ab5a5ac9577401e to your computer and use it in GitHub Desktop.
Versions Parsing in ES6, Attempt 1
// 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