We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7664bf commit be3cb9aCopy full SHA for be3cb9a
__tests__/Repeat.ts
@@ -11,4 +11,8 @@ describe('Repeat', () => {
11
expect(v.toArray()).toEqual(['wtf', 'wtf', 'wtf']);
12
expect(v.join()).toEqual('wtf,wtf,wtf');
13
});
14
+
15
+ it('does not claim to be equal to undefined', () => {
16
+ expect(Repeat(1).equals(undefined)).toEqual(false);
17
+ });
18
src/Repeat.js
@@ -93,7 +93,7 @@ export class Repeat extends IndexedSeq {
93
equals(other) {
94
return other instanceof Repeat
95
? is(this._value, other._value)
96
- : deepEqual(other);
+ : deepEqual(this, other);
97
}
98
99
0 commit comments