Source code
Revision control
Copy as Markdown
Other Tools
// Each Map has its own size.
var m1 = new Map(), m2 = new Map();
m1.set("x", 3);
assertEq(m1.size, 1);
assertEq(m2.size, 0);
// Each Map has its own size.
var m1 = new Map(), m2 = new Map();
m1.set("x", 3);
assertEq(m1.size, 1);
assertEq(m2.size, 0);