MCPcopy Index your code
hub / github.com/angular/angular / _adjustIndex

Method _adjustIndex

packages/forms/src/model/form_array.ts:510–512  ·  view source on GitHub ↗

* Adjusts a negative index by summing it with the length of the array. For very negative * indices, the result may remain negative. * @internal

(index: number)

Source from the content-addressed store, hash-verified

508 * @internal
509 */
510 private _adjustIndex(index: number): number {
511 return index < 0 ? index + this.length : index;
512 }
513
514 /** @internal */
515 override _syncPendingControls(): boolean {

Callers 3

atMethod · 0.95
removeAtMethod · 0.95
setControlMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected