Google Apps Script: Loop Array

August 12, 2019
var ss = SpreadsheetApp.getActive();
var triggers = ScriptApp.getUserTriggers(ss);
for each (t in triggers) {
  if (t.getHandlerFunction() == 'onTriggerEdit') {

  }
}

or

for (i in triggers) {
  var t = triggers[i];
  if (t.getHandlerFunction() == 'onTriggerEdit') {

  }
}
This work is licensed under a
Creative Commons Attribution-NonCommercial 4.0 International License.