MCPcopy
hub / github.com/angular/angular / peekStartsWith

Method peekStartsWith

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

Source from the content-addressed store, hash-verified

799 }
800
801 private peekStartsWith(str: string): boolean {
802 return this.remaining.startsWith(str);
803 }
804
805 // Consumes the prefix when it is present and returns whether it has been consumed
806 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