I got this guy. He decode a string into a readble one.
decodeURIComponent("Invalid Ticker Name \u0027t\u0027 at line: 3")
"Invalid Ticker Name 't' at line: 3"
Now look at this one. It tells us that the source of this string (array item) is really a string.
typeof decodeURIComponent(errorsArr[i])
"string"
But when I try to decode the array item, it just doesn't work.
decodeURIComponent(errorsArr[i])
"Invalid Ticker Name \u0027t\u0027 at line: 3"
What to do?