mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
647afb02b3
The existing logic does something similar but in a more roundabout way. It reads _the whole array_. If it encounters a pending value, it ignores the remaining ones. If it hasn't encountered a pending value by the time it hits false/UrlTree, it returns that result. The new logic is the same, but reverses what we're looking for. Instead of processing the whole array, we stop when we encounter an initial value. When we encounter one that isn't `true`, that gets returned. If we get to the end and everything was `true`, return `true`. PR Close #46745 PR Close #46745
Angular
The sources for this package are in the main Angular repo. Please file issues and pull requests against that repo.
Usage information and reference details can be found in Angular documentation.
License: MIT