Skip to content

Instantly share code, notes, and snippets.

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