angular/angular.js — pull request #8702 by caitp (2014-08-21 01:24:23+00:00)
Title: fix(copy): clear array destinations correctly for non-array sources

Previously, we failed to modify the `length` property of an array destination when
dealing with non-array sources. This CL ensures that the length is correctly reset
to 0 before copying properties from the source object.

While it's not a super-important feature, it's literally a single line of code and
not very difficult to understand

Closes #8610