v1
- by cmdcolin 7/25/202200
Setup HTML - click to add setup HTML
disable setup JavaScript
Setup JavaScript
const map = new Map()
for(let i = 0; i < 100; i++) {
	const rand = Math.floor(Math.random()*1000)
	map.set(i, i*4%3)
}
delete caserun single casemove downdrag and drop case


ready




const arr = [];
map.forEach((value, key) => {
	arr.push(value)
})
delete caserun single casemove upmove downdrag and drop case


ready




const arr = [];
[...map.keys()].forEach(key => {
	
	arr.push(map.get(key))
})
delete caserun single casemove upmove downdrag and drop case


ready




const arr = [];
for (const [key] of map) {
	arr.push(map.get(key))
}

delete caserun single casemove upmove downdrag and drop case


ready




const arr = [];
for (const key of map.keys()) {
	
	arr.push(map.get(key))
}

delete caserun single casemove upmove downdrag and drop case


ready



const arr = [];
for (const val of map.values()) {
	
	arr.push(val)
}
delete caserun single casemove updrag and drop case


ready




const arr = [];
[...map.values()].forEach(val => {
	
	arr.push(val)
})
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