Instantly share code, notes, and snippets.

@Ibro /Map.js
Last active Feb 26, 2018

Embed
What would you like to do?
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