nonGridRangeSameDimensions
function nonGridRangeSameDimensions(range1: GridRange, range2: GridRange): boolean;
The negation of isGridRangeSameDimensions, for the guard clause that returns early when a copy would not fit.
Parameters
Parameter | Type | Description |
|---|---|---|
|
| The first range. |
|
| The second range. |
Returns
boolean — true when the sizes differ.
Examples
Comparing sizes
const source = { startRowIndex: 0, endRowIndex: 2, startColumnIndex: 0, endColumnIndex: 2 };
const target = { startRowIndex: 0, endRowIndex: 3, startColumnIndex: 0, endColumnIndex: 2 };
nonGridRangeSameDimensions(source, target); // => true
See also
Source
23 September 2026
This documentation was generated with AI (Claude) from the library's source code.