( base: T | null, other: T | null, )
| 156 | } |
| 157 | |
| 158 | export function nullSafeIsEquivalent<T extends {isEquivalent(other: T): boolean}>( |
| 159 | base: T | null, |
| 160 | other: T | null, |
| 161 | ) { |
| 162 | if (base == null || other == null) { |
| 163 | return base == other; |
| 164 | } |
| 165 | return base.isEquivalent(other); |
| 166 | } |
| 167 | |
| 168 | function areAllEquivalentPredicate<T>( |
| 169 | base: T[], |
no test coverage detected
searching dependent graphs…