Skip to content

Instantly share code, notes, and snippets.

@nairihar
Created July 1, 2018 10:02
Show Gist options
  • Save nairihar/7cac688398a7c1fb103d5464beea0f99 to your computer and use it in GitHub Desktop.
Save nairihar/7cac688398a7c1fb103d5464beea0f99 to your computer and use it in GitHub Desktop.
JavaScript series, part 2, Map, medium
const myMap = new Map([[1, 11], [2, 22]]);
console.log(myMap.has(3)); // false
console.log(myMap.has(2)); // true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment