Skip to content

Instantly share code, notes, and snippets.

@conanak99
Created Mar 9, 2016
Embed
What would you like to do?
// 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