Trying to extend the string prototype and somethin...
# suitescript
r
Trying to extend the string prototype and something weird happens.
this
indexOf is not a function
Untitled.js
e
Arrow functions don't bind a new
this
context
I have concerns about modifying a native prototype, but I'll lay those aside. Switch to a regular function declaration and try again
r
resolved. thanks!
1