( base: T | null, other: T | null, )
| 158 | } |
| 159 | |
| 160 | export 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 | |
| 170 | function areAllEquivalentPredicate<T>( |
| 171 | base: T[], |
no test coverage detected