v1
- by mukuljainx 5/28/202100
Setup HTML - click to add setup HTML
disable setup JavaScript
Setup JavaScript
const users = [];
for(let i=0; i< 1000; i++){
	users.push({active: Math.random() > 0.5, id: i});
}
delete caserun single casemove downdrag and drop case


ready



const activeUsers = users.reduce((acc, user) => {
  if (user.active) {
    return { ...acc, [user.id]: user };
  }
  return acc;
}, {});
delete caserun single casemove upmove downdrag and drop case


ready



let activeUsers = {};


users.forEach((user) => {
  if (user.active) {
    activeUsers[user.id] = user;
  }
});
delete caserun single casemove updrag and drop case


ready



const a = users.filter((user) => user.active).map((user) => [user.id, user]);
const activeUsers = Object.fromEntries(a);
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