-
-
Save conanak99/1bf72bb5eeaeed429fcb to your computer and use it in GitHub Desktop.
This file contains 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
// Sets | |
var s = new Set(); | |
s.add("hello").add("goodbye").add("hello"); | |
s.size === 2; | |
s.has("hello") === true; | |
// Maps | |
var m = new Map(); | |
m.set("hello", 42); | |
m.set(s, 34); | |
m.get(s) == 34; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment