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 09008d5 commit e84d651Copy full SHA for e84d651
lib/duration.js
@@ -65,7 +65,7 @@ class Duration {
65
*/
66
eq(other) {
67
if (other instanceof Duration) {
68
- return this._nanoseconds == other.nanoseconds;
+ return this._nanoseconds === other.nanoseconds;
69
}
70
throw new TypeError(
71
`Can't compare duration with object of type: ${other.constructor.name}`
lib/time.js
@@ -150,7 +150,7 @@ class Time {
150
if (other._clockType !== this._clockType) {
151
throw new TypeError("Can't compare times with different clock types");
152
153
154
155
throw new TypeError('Invalid argument');
156
0 commit comments