for vs forEach vs map : array creation : 2019 (version: 0)
This test is to test the return of an array from these loops.
A lot of the test are incorrect because .map returns an array.
So it will only be fair to test the speeds based on returning a new array from all loops.
Comparing performance of: for - create new array vs forEach - create new array vs map - create new array vs for - overwrite array vs forEach - overwrite array vs map - overwrite array