Google Apps Script Patterns: Getting a Google Sheet header row
Often in Google Sheets you want to grab the header row, this might be in preparation to read/write data, to populate some UI, or something else. Here are some Google Apps Script patterns for doing this