Array “includes” method fails in Google Apps Script

前端 未结 1 1939
有刺的猬
有刺的猬 2021-01-19 00:08

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

相关标签:
1条回答
  • 2021-01-19 00:46

    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.

    0 讨论(0)
提交回复
热议问题