Refactoring `array.each()` to support asynchronous iteration with 2 new optional arguments

Minor change