I've been stuck trying to debug a script I was writing when it dawned on me that the source of the problem could be that the Array.prototype.find() method I was using is not supported at all in the current version of Google Apps Script (as of March 4th, 2017). The reason I suspect this is because of the following code that I tried running in two different environments:
// ran this locally on Chrome version 56.0.2924.87 (64-bit)
// result is 3
var t = [1,2,3,4];
var x = t.find(function(v) {
return v == 3;
});
document.write(x);
==========
// ran this on Google Apps Script (whatever the version is as of March 4th, 2017)
// attempting to run this function produces the error: "TypeError: Cannot find function find in object 1,2,3,4."
var t = [1,2,3,4];
var x = t.find(function(v) {
return v == 3;
});
Logger.log(x);
The only conclusion I could draw from this experiment is that Google Apps Script is based on an outdated version of JavaScript, which leads to my main question: How can I find which version of any technology (whether it be JavaScript, or HTML, or CSS, etc.) is supported by the Chrome web browser and Google Apps Script? How could I best keep myself informed of any major changes?