TypeError: Cannot find function includes in object...
# suitescript
e
TypeError: Cannot find function includes in object ^Received this error when trying to see if a string existed within an array of strings. Does NetSuite not support the .includes function?
a
I would do a loop on each element of the array then search for the string you are looking for. I have had this same problem
s
I would use lodash
and not write a loop
136 Views