Thursday, September 24, 2015

Foreach in Google Apps Script

In Google Apps Script, you can do the foreach loop as the following example:

 var headers = ["super", "genius", "awesome"];
 for each (var header in headers) {
       Logger.log(header);
 }