blob: 601a76188ebcbc8daaef554748deb39d6ef38d3d (
plain)
1
2
3
4
5
6
7
8
9
|
// Map can take an argument that is an array of singleton arrays.
var arr = [["a"], ["b"], ["c"]];
var m = new Map(arr);
assertEq(m.size, 3);
for (var [k, _] of arr) {
assertEq(m.has(k), true);
assertEq(m.get(k), undefined);
}
|