Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed a bug which didn't allow proper comparison of objects #10089

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion modules/util/array.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
var i = a.length;
if (i !== b.length) return false;
while (i--) {
if (a[i] !== b[i]) return false;
// When a and b contain objects, the !== operator will compare their references which may be diffrent even if the object is the same, related #9502

Check failure on line 10 in modules/util/array.js

View workflow job for this annotation

GitHub Actions / Check for spelling errors

diffrent ==> different
if (JSON.stringify(a[i]) !== JSON.stringify(b[i])) return false;
}
return true;
}
Expand Down
Loading