Below is the code I am currently using:
if (res[0].toString() == "hello") { res[0] = "string"; };
While it works, I would like this logic to apply to all elements rather than just the first one.
Is there a way to achieve this for every element in the array?
Edit: This issue has been resolved. Thank you everyone for your help!