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

Function areAllEquivalentPredicate

packages/compiler/src/output/output_ast.ts:168–183  ·  view source on GitHub ↗
(
  base: T[],
  other: T[],
  equivalentPredicate: (baseElement: T, otherElement: T) => boolean,
)

Source from the content-addressed store, hash-verified

166}
167
168function areAllEquivalentPredicate<T>(
169 base: T[],
170 other: T[],
171 equivalentPredicate: (baseElement: T, otherElement: T) => boolean,
172) {
173 const len = base.length;
174 if (len !== other.length) {
175 return false;
176 }
177 for (let i = 0; i < len; i++) {
178 if (!equivalentPredicate(base[i], other[i])) {
179 return false;
180 }
181 }
182 return true;
183}
184
185export function areAllEquivalent<T extends {isEquivalent(other: T): boolean}>(
186 base: T[],

Callers 2

areAllEquivalentFunction · 0.85
isEquivalentMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…