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

Method at

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

* Get the `AbstractControl` at the given `index` in the array. * * @param index Index in the array to retrieve the control. If `index` is negative, it will wrap * around from the back, and if index is greatly negative (less than `-length`), the result is * undefined. This behavior is

(index: number)

Source from the content-addressed store, hash-verified

166 * undefined. This behavior is the same as `Array.at(index)`.
167 */
168 at(index: number): ɵTypedOrUntyped<TControl, TControl, AbstractControl<any>> {
169 return (this.controls as any)[this._adjustIndex(index)];
170 }
171
172 /**
173 * Insert a new `AbstractControl` at the end of the array.

Callers 12

setValueMethod · 0.95
patchValueMethod · 0.95
_findMethod · 0.95
form_group_spec.tsFile · 0.45
form_array_spec.tsFile · 0.45
addItemMethod · 0.45

Calls 1

_adjustIndexMethod · 0.95

Tested by 1