8000 Sequence#equals resilient to unknown length Sequence comparisons · powercoder23/immutable-js@28aed68 · GitHub
[go: up one dir, main page]

Skip to content

Commit 28aed68

Browse files
committed
Sequence#equals resilient to unknown length Sequence comparisons
1 parent c3b6f9a commit 28aed68

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

dist/Immutable.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,8 +322,8 @@ var $Sequence = Sequence;
322322
var iterations = 0;
323323
return other.every((function(v, k) {
324324
var entry = entries[iterations++];
325-
return is(k, entry[0]) && is(v, entry[1]);
326-
}));
325+
return entry && is(k, entry[0]) && is(v, entry[1]);
326+
})) && iterations === entries.length;
327327
},
328328
join: function(separator) {
329329
separator = separator !== undefined ? '' + separator : ',';

0 commit comments

Comments
 (0)
0