25563765··on JavaScript- Lodash vs Js function vs. for vs. for eachHis for loop modifies the data in-place, compared to map, which returns a new array. This is just one of many things wrong with this test.