💾 sheet.rangeByRect()

GASappprototypessheet.prototype ⟩ .rangeByRect()

  // 🔸 sheet.rangeByRect(rect: RangeRect)
  // require: RangeRect
  rangeByRect(rect){
    const range = this.getRange(...rect.toArray());
    range.__proto__ = app.range.prototype;           // ⭐️ extend range
    return range;
  },

Last updated