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

Function nullSafeIsEquivalent

packages/compiler/src/output/output_ast.ts:160–168  ·  view source on GitHub ↗
(
  base: T | null,
  other: T | null,
)

Source from the content-addressed store, hash-verified

158}
159
160export function nullSafeIsEquivalent<T extends {isEquivalent(other: T): boolean}>(
161 base: T | null,
162 other: T | null,
163) {
164 if (base == null || other == null) {
165 return base == other;
166 }
167 return base.isEquivalent(other);
168}
169
170function areAllEquivalentPredicate<T>(
171 base: T[],

Callers 1

isEquivalentMethod · 0.85

Calls 1

isEquivalentMethod · 0.45

Tested by

no test coverage detected