Replace for-of loops with Lo-Dash