mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
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 |
||
|---|---|---|
| .. | ||
| src | ||
| test | ||
| BUILD.bazel | ||
| index.ts | ||
| package.json | ||
| PACKAGE.md | ||
| public_api.ts | ||