As discussed in the issue, when the object passed in is an Array, the old version of the code used to run the injection code and exit based on the type checking logic. This version keeps the enhancement of using the angular type checks but switches the logic to an if/else block to match the original intention of the code before it was changed.
As discussed in the issue, when the object passed in is an Array, the old version of the code used to run the injection code and exit based on the type checking logic. This version keeps the enhancement of using the angular type checks but switches the logic to an if/else block to match the original intention of the code before it was changed.