* Determines if the input range is equivalent to this one. * * @param {TokenRange} other Range to compare with. * @returns {boolean} Whether or not the ranges are equal.
(other)
| 253 | * @returns {boolean} Whether or not the ranges are equal. |
| 254 | */ |
| 255 | equals(other) { |
| 256 | if (other === this) { |
| 257 | return true; |
| 258 | } else if (other instanceof TokenRange) { |
| 259 | return this.compare(other) === 0; |
| 260 | } |
| 261 | return false; |
| 262 | } |
| 263 | |
| 264 | /** |
| 265 | * Returns 0 if the values are equal, otherwise compares against |