Array "includes" Method Fails In Google Apps Script
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 'test_array'). Here i
Solution 1:
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.
Post a Comment for "Array "includes" Method Fails In Google Apps Script"