mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
f490c2de4e
This new feature allows negative indices to wrap around from the back, just like ES2021 `Array.at`. In particular, the following methods accept negative indices, and behave like corresponding Array methods: * `FormArray.at(index)`: behaves the same as `Array.at(index)` * `FormArray.insert(index, control)`: behaves the same as `Array.splice(index, 0, control)` * `FormArray.setControl(index, control)`: behaves the same as `Array.splice(index, 1, control)` * `FormArray.removeAt(index, control)`: behaves the same as `Array.splice(index, 1)` Previous work in #44746 and #44631 (by @amitbeck). Issue #44642. Co-authored-by: Amit Beckenstein <amitbeck@gmail.com> PR Close #44848
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