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

Method _isValidIndex

src/cdk/stepper/stepper.ts:617–619  ·  view source on GitHub ↗

Checks whether the passed-in index is a valid step index.

(index: number)

Source from the content-addressed store, hash-verified

615
616 /** Checks whether the passed-in index is a valid step index. */
617 private _isValidIndex(index: number): boolean {
618 return index > -1 && (!this.steps || index < this.steps.length);
619 }
620}

Callers 2

selectedIndexMethod · 0.95
ngAfterViewInitMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected