v1
8/28/2022 by pushkine -00
Setup HTML - click to add setup HTML
disable setup JavaScript
Setup JavaScript
class Foo {
	constructor() {
		const r = Math.random();
		this[0] = (r * 1000) | 0;
		this[1] = (r * 1337) | 0;
		if (r > 0.5) this[2] = (r * 10_000) | 0;
	}
}
const arr = Array.from({ length: 100 }, () => new Foo());
var i = 0;
var j = 0;
delete caserun single casemove downdrag and drop case


ready



for (var k = 0; k < arr.length; k++) {
	if ("2" in arr[k]) i |= arr[k][2];
}
j ^= 0xff ^ i;
i = 0;
delete caserun single casemove updrag and drop case


ready



for (var k = 0; k < arr.length; k++) {
	if (2 in arr[k]) i |= arr[k][2];
}
j ^= 0xff ^ i;
i = 0;

Test Case - click to add another test case
Teardown JS - click to add teardown JavaScript
Output (DOM) - click to monitor output (DOM) while test is running
RUN