1 | import { comparer as defaultComparer } from '../internal/comparer';
|
2 | export function sequenceEqual(source, other, comparer = defaultComparer) {
|
3 | const it1 = source[Symbol.iterator](), it2 = other[Symbol.iterator]();
|
4 | let next1, next2;
|
5 | while (!(next1 = it1.next()).done) {
|
6 | if (!(!(next2 = it2.next()).done && comparer(next1.value, next2.value))) {
|
7 | return false;
|
8 | }
|
9 | }
|
10 | return it2.next().done;
|
11 | }
|
12 |
|
13 | //# sourceMappingURL=sequenceequal.mjs.map
|