Smallest nitpicking ever: declare i inside the for loop.
for (let i = 0; i < 1000; i++)
It will prevent it from leaking outside the loop.
I wouldn't even call that nitpicking, that is solid best practice advice to avoid memory leaks.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.