Skip to content

Commit

Permalink
Fix UnorderedArray comparison failing for undefined
Browse files Browse the repository at this point in the history
Change-type: patch
  • Loading branch information
pipex committed Apr 10, 2024
1 parent 0804087 commit 154c008
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils/unordered-array.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class UnorderedArrayImpl<T> extends Array<T> implements UnorderedArray<T> {
equals(other: ArrayLike<T>): boolean {
// If the arrays have different length then return false
// immediately
if (this.length !== other.length) {
if (other == null || this.length !== other.length) {
return false;
}

Expand Down

0 comments on commit 154c008

Please sign in to comment.