412 Views
Below are benchmarks and the accompanying function for the various ways to iterate in JavaScript. Each was tested by iterating 10 million times. TLDR; Regular "For Loop" is most performant and the "For Of loop" is least performant . For Loop - 8 ms While Loop - 8 ms
0 comments