Test case details

Preparation Code

const testingArray = Array.from(Array(100000).keys())

Test cases

Test #1

for (let i=0; i<testingArray.length; ++i) { const division = i / 2; }

Test #2

testingArray.some((i) => { const division = i / 2; return false; })

Test #3

let i = 0; while(++i < testingArray.length) { const division = i / 2; }

Test #4

testingArray.find((i) => { const division = i / 2; return false; })