MCPcopy Index your code
hub / github.com/angular/angular / siblings

Method siblings

packages/router/src/utils/tree.ts:48–54  ·  view source on GitHub ↗

* @internal

(t: T)

Source from the content-addressed store, hash-verified

46 * @internal
47 */
48 siblings(t: T): T[] {
49 const p = findPath(t, this._root);
50 if (p.length < 2) return [];
51
52 const c = p[p.length - 2].children.map((c) => c.value);
53 return c.filter((cc) => cc !== t);
54 }
55
56 /**
57 * @internal

Callers 1

tree.spec.tsFile · 0.80

Calls 3

findPathFunction · 0.85
mapMethod · 0.80
filterMethod · 0.45

Tested by

no test coverage detected