Convert array string to array for mapping data

Here is my problem

const data = "[\"https://i.imgur.com/PAYXC2n.jpg\",\"https://i.imgur.com/bEfjjxA.jpg\"]";

I want to convert this string to array, expected result will be :

res =["https://i.imgur.com/PAYXC2n.jpg","https://i.imgur.com/bEfjjxA.jpg"]

I use it for mapping data in React JS project, so i need to convert this string to array.



from Recent Questions - Stack Overflow https://ift.tt/2UV0v4X
https://ift.tt/eA8V8J

Comments

Popular posts from this blog

Today Walkin 14th-Sept

Spring Elasticsearch Operations

Hibernate Search - Elasticsearch with JSON manipulation