Skip to content

Commit

Permalink
array length fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kpal81xd committed Jul 16, 2024
1 parent 0997497 commit 8176539
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/array-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const array = {
// helper function to compare two arrays for equality
equals(arr1, arr2) {

if (arr1.size !== arr2.size) {
if (arr1.length !== arr2.length) {
return false;
}
for (let i = 0; i < arr1.length; i++) {
Expand Down

0 comments on commit 8176539

Please sign in to comment.