Skip to content

Instantly share code, notes, and snippets.

@tugberkugurlu
Created March 23, 2017 11:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tugberkugurlu/3e433a31d88b14d389d37d4a43ab3b90 to your computer and use it in GitHub Desktop.
Save tugberkugurlu/3e433a31d88b14d389d37d4a43ab3b90 to your computer and use it in GitHub Desktop.
const foo = new Map<string, number>();
foo.set('1key', 1);
foo.set('2key', 2);
foo.set('3key', 3);
Array.from(foo.entries()).forEach(item => {
const [y, x] = item;
console.log(`${y}zz: ${x}`)
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment