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

Method peekStartsWith

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

Source from the content-addressed store, hash-verified

884 }
885
886 private peekStartsWith(str: string): boolean {
887 return this.remaining.startsWith(str);
888 }
889
890 // Consumes the prefix when it is present and returns whether it has been consumed
891 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