-1 if a < b, 1 if a > b, 0 if equal (reading order: row then col).
(a: Point, b: Point)
| 225 | |
| 226 | /** -1 if a < b, 1 if a > b, 0 if equal (reading order: row then col). */ |
| 227 | function comparePoints(a: Point, b: Point): number { |
| 228 | if (a.row !== b.row) return a.row < b.row ? -1 : 1 |
| 229 | if (a.col !== b.col) return a.col < b.col ? -1 : 1 |
| 230 | return 0 |
| 231 | } |
| 232 | |
| 233 | /** |
| 234 | * Select the word at (col, row) by scanning the screen buffer for the |
no outgoing calls
no test coverage detected