Implement equals for NumberRange in JavaScript.
This commit is contained in:
committed by
Andrey Breslav
parent
ca7c3d7999
commit
1842d30567
@@ -546,6 +546,11 @@
|
||||
},
|
||||
isEmpty: function () {
|
||||
return this.start > this.end;
|
||||
},
|
||||
equals_za3rmp$: function(other) {
|
||||
if (other == null)
|
||||
return false;
|
||||
return this.start === other.start && this.end === other.end && this.increment === other.increment;
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user