getSheets
getSheets is a method of the Spreadsheet class in Google Apps Script. It returns an array containing every sheet in the spreadsheet as Sheet objects.
The array preserves the tab order of the sheets. Each element represents one worksheet and exposes methods
Usage commonly involves obtaining the active spreadsheet and calling getSheets to retrieve the list, then iterating
Notes: The method requires authorization to access Google Sheets data. The returned array reflects the current
See also: getSheetByName, getActiveSpreadsheet, and the Sheet class.