Convert some for loops into forEach, some, every