Method
compare
* Returns 0 if the values are equal, 1 if greater than other, -1 * otherwise. * * @param {Token} other * @returns {Number}
(other)
Source from the content-addressed store, hash-verified
| 59 | * @returns {Number} |
| 60 | */ |
| 61 | compare(other) { |
| 62 | return this._value.compare(other._value); |
| 63 | } |
| 64 | |
| 65 | equals(other) { |
| 66 | return this.compare(other) === 0; |
Tested by
no test coverage detected