Remove lodash each and replace with for..of