/** * App.isSameRange(r1, r2) */ App.isSameRange = function(range1, range2){ return range1.getDataSourceUrl() === range2.getDataSourceUrl(); };
How do I compare two Range objects?
Range ⟩
.getDataSourceUrl()
.getGridId() - grid ID of the range's parent sheet.
.getA1Notation() - e.g. "A1:E2"
Last updated 2 years ago