Skip to content

Instantly share code, notes, and snippets.

@Ibro
Last active February 26, 2018 09:23
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save Ibro/42b4d0c3a843aaeb3037e725f7a03b86 to your computer and use it in GitHub Desktop.
CodingBlast blog - Set, Map - https://codingblast.com/javascript-set-map/
let map = new Map([['name', 'CodingBlast'], ['points', 33], [true, 55], ['true', 44]])
for (let [key, value] of map.entries()) {
console.log('key is ' + key + ', value is ' + value);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment