apps-script-utils 2.1.1 Help

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

range1

GridRange

The first range.

range2

GridRange

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

src/appsscript/sheet/nonGridRangeSameDimensions.ts

23 September 2026

This documentation was generated with AI (Claude) from the library's source code.