v1
- by nikkypizza 5/2/202200
Setup HTML - click to add setup HTML
disable setup JavaScript
Setup JavaScript
const str = 'test';
const dataSize = 5000;
const target = str + dataSize;

const obj = {};
for (let i = 0; i <= dataSize; i++) obj[str + i] = 1;

const arr = Object.keys(obj);

const regexp = new RegExp(`^(\\b${arr.join('\\b|\\b')}\\b)`, 'gi');
delete caserun single casemove downdrag and drop case


ready



regexp.test(target);
delete caserun single casemove upmove downdrag and drop case


ready



obj.hasOwnProperty(target);
delete caserun single casemove upmove downdrag and drop case


ready



arr.includes(target);
delete caserun single casemove upmove downdrag and drop case


ready



regexp.test(str + 0);
delete caserun single casemove upmove downdrag and drop case


ready



obj.hasOwnProperty(str + 0);
delete caserun single casemove updrag and drop case


ready



arr.includes(str + 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