Skip to content

Instantly share code, notes, and snippets.

@nairihar
Last active July 1, 2018 09:22
Show Gist options
  • Save nairihar/78ec82ecadf4ee35c7df18cf8326a97a to your computer and use it in GitHub Desktop.
Save nairihar/78ec82ecadf4ee35c7df18cf8326a97a to your computer and use it in GitHub Desktop.
JavaScript series, part 2, Map, medium
const myMap = new Map();
myMap.set('k1', 1);
myMap.set('k1', 2);
console.log([...myMap]);
// [ ['k1', 2] ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment