MCPcopy Create free account
hub / github.com/angular/angular / peekStartsWith

Method peekStartsWith

packages/router/src/url_tree.ts:805–807  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

803 }
804
805 private peekStartsWith(str: string): boolean {
806 return this.remaining.startsWith(str);
807 }
808
809 // Consumes the prefix when it is present and returns whether it has been consumed
810 private consumeOptional(str: string): boolean {

Callers 4

parseRootSegmentMethod · 0.95
parseChildrenMethod · 0.95
parseSegmentMethod · 0.95
consumeOptionalMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected