Dr. Derek Austin 🥳
1 min readJul 11, 2020

--

Hey Mike, thanks so much for reading and responding. JSPerf is really dependent on your computer and your browser, and I've found results can vary just running it 2-3x in a row. I think the main finding is that ... is fine for small arrays (<40 items) and for loop is necessary for big arrays (>1000 items).

--

--

Dr. Derek Austin 🥳
Dr. Derek Austin 🥳

Written by Dr. Derek Austin 🥳

Hi, I'm Doctor Derek! I've been a professional web developer since 2005, and I love writing about programming with JavaScript, TypeScript, React, Next.js & Git.

No responses yet