diff options
Diffstat (limited to 'web/src/types.ts')
| -rw-r--r-- | web/src/types.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/web/src/types.ts b/web/src/types.ts index 008d1ee..9b7a51a 100644 --- a/web/src/types.ts +++ b/web/src/types.ts @@ -35,3 +35,11 @@ export interface CellRef { rowIndex: number; cellIndex: number; } + +export function cellRefEquals(a: CellRef, b: CellRef): boolean { + return ( + a.partIndex === b.partIndex && + a.rowIndex === b.rowIndex && + a.cellIndex === b.cellIndex + ); +} |
