(other: unknown)
| 227 | |
| 228 | class ArrayOf extends AsymmetricMatcher<unknown> { |
| 229 | asymmetricMatch(other: unknown) { |
| 230 | const matcherContext = this.getMatcherContext(); |
| 231 | const result = |
| 232 | Array.isArray(other) && |
| 233 | other.every(item => |
| 234 | equals(this.sample, item, matcherContext.customTesters), |
| 235 | ); |
| 236 | |
| 237 | return this.inverse ? !result : result; |
| 238 | } |
| 239 | |
| 240 | toString() { |
| 241 | return `${this.inverse ? 'Not' : ''}ArrayOf`; |