Skip to content

Commit

Permalink
might as well do loose null comparson for isTypedArray
Browse files Browse the repository at this point in the history
  • Loading branch information
planttheidea committed Feb 27, 2023
1 parent 1f8aee9 commit 058724a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/comparator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export function createComparator<Meta>({

// `isTypedArray()` works on all possible TypedArray classes, so we can avoid
// capturing the string tag.
if (isTypedArray !== null && isTypedArray(a)) {
if (isTypedArray != null && isTypedArray(a)) {
return areTypedArraysEqual(a, b, state);
}

Expand Down

0 comments on commit 058724a

Please sign in to comment.