Updating `array.each()` to not set an unneeded variable while iterating, updating `array.limit()` to halt iteration at the end of the array