v1
- by soulstring 11/26/202000
Setup HTML - click to add setup HTML
disable setup JavaScript
Setup JavaScript
function filter (fn, a) {
  const f = []; //final
  for (let i = 0; i < a.length; i++) {
    if (fn(a[i])) {
      f.push(a[i]);
    }
  }
  return f;
};

const source = Array(200).fill().map(() => Math.round(Math.random() * 10))
delete caserun single casemove downdrag and drop case


ready



source.filter(item => item === 5)
delete caserun single casemove updrag and drop case


ready



filter(item => item === 5, source)
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