Skip to content

Instantly share code, notes, and snippets.

Created Mar 9, 2016
What would you like to do?
// Sets
var s = new Set();
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