Implement equals for NumberRange in JavaScript.

This commit is contained in:
Ilya Ryzhenkov
2014-06-20 22:42:08 +04:00
committed by Andrey Breslav
parent ca7c3d7999
commit 1842d30567
+5
View File
@@ -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;
}
});