I have a string in this format: "['A', 'B', 'C']". I want to convert it to an array ['A', 'B', 'C']. I tried using JSON.parse() but it did not work. Any help would be appreciated.
const strArray = "['A', 'B', 'C']";
const parsedString = JSON.parse(strArray);
console.log(parsedString);