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

Function equalPath

packages/router/src/url_tree.ts:410–413  ·  view source on GitHub ↗
(as: UrlSegment[], bs: UrlSegment[])

Source from the content-addressed store, hash-verified

408}
409
410export function equalPath(as: UrlSegment[], bs: UrlSegment[]): boolean {
411 if (as.length !== bs.length) return false;
412 return as.every((a, i) => a.path === bs[i].path);
413}
414
415export function mapChildrenIntoArray<T>(
416 segment: UrlSegmentGroup,

Callers 4

equalSegmentGroupsFunction · 0.85
equalSegmentsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected