Last active
July 1, 2018 10:17
-
-
Save nairihar/57d8282d0c6322eda5d7d76d6437c106 to your computer and use it in GitHub Desktop.
JavaScript series, part 2, Map, medium
This file contains hidden or 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
const myMap = new Map(); | |
myMap | |
.set(1, 11) | |
.set(2, 22); | |
const iterator = myMap.entries(); | |
for (let item of iterator) { | |
console.log(item); | |
} | |
// [1, 11] | |
// [2, 22] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment