Skip to content

Commit

Permalink
chore: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
benlesh committed Oct 27, 2023
1 parent 2913a4f commit 5bee7d2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/rxjs/spec/helpers/observableMatcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,14 @@ function isSubscriptionLogArray(input: unknown): input is SubscriptionLog[] {
}

function isArrayOf<T>(input: unknown, propName: keyof T): input is T[] {
if (!Array.isArray(input)) return false;
if (!Array.isArray(input)) {
return false;
}

// An empty array could match any type of array.
if (input.length === 0) return true;
if (input.length === 0) {
return true;
}

const first = input[0];
return typeof first === 'object' && first && propName in first;
Expand Down

0 comments on commit 5bee7d2

Please sign in to comment.