MCPcopy Create free account
hub / github.com/angular/components / _isValidIndex

Method _isValidIndex

src/material/chips/chip-set.ts:177–179  ·  view source on GitHub ↗

* Utility to ensure all indexes are valid. * * @param index The index to be checked. * @returns True if the index is valid for our list of chips.

(index: number)

Source from the content-addressed store, hash-verified

175 * @returns True if the index is valid for our list of chips.
176 */
177 protected _isValidIndex(index: number): boolean {
178 return index >= 0 && index < this._chips.length;
179 }
180
181 /**
182 * Removes the `tabindex` from the chip set and resets it back afterwards, allowing the

Callers 3

_handleKeydownMethod · 0.45
focusIndexFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected