Dealing with a string
that contains tricky \\
characters.
Here is the initial code, and my attempt at achieving what I need, but encountering issues. The challenge lies in replacing the \"
characters.
var current = csvArray[0][i].Replace("\"", "");
I also attempted an alternative approach below, however it did not resolve the issue.
var current = csvArray[0][i].Replace('\"', '');
An error message saying
Uncaught TypeError: csvArray[0][i].Replace is not a function
is currently being thrown.
Is there a way for Javascript to interpret my string ("\"")
just like how it is done in C#
? Assistance in investigating this matter would be greatly appreciated. Thank you!