How can we convert an array of type string back into array.
var arr = '[ "abc", "def"]';
console.log(typeof arr) ==> String
How can i convert it back into an array?
I am getting this array in form of string from an API response. and these are errors which can be multiple. I want to convert them into an array such that i can display them on their correct positions.