I was trying to use the "includes" method for an array in Google Apps Script but it fails with "Cannot find function includes in object 1,4,3,7. (line 4, file
It was/is not supported in rhino runtime. With upgrade to v8, Array.includes is supported and should be preferred instead of Array.indexOf in all cases.