v2
12/28/2022 by kitsunde -00
Setup HTML - click to add setup HTML
disable setup JavaScript
Setup JavaScript
const data = Array.from({length: 1000}, (_, index) => index);

const preGeneratedEntries = data.map((value) => {
	return [value, value];
});

delete caserun single casemove downdrag and drop case


ready



function* mapIterator(arr, fn) {
  for (const value of arr) {
    yield [value, value];
  }
}

Object.fromEntries(mapIterator(data));

delete caserun single casemove upmove downdrag and drop case


ready



Object.fromEntries(data.map((value) => {
	return [value, value];
}));

delete caserun single casemove upmove downdrag and drop case


ready



Object.fromEntries(preGeneratedEntries);

delete caserun single casemove upmove downdrag and drop case


ready



data.reduce((obj, value) => {
	obj[value] = value;
	return obj;
}, {});

delete caserun single casemove updrag and drop case


ready



const obj = {}

for(const value of data) {
	obj[value] = value;
}

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