i have this
string = "Art,fitness"
and i want a array like this
[[Art], [Fitnnes]]
if i do string.spli(',')
i got ["Art", "Fitnnes"]
And is not the output i need, also i try
JSON.parse("[" + string.replace(/'/g, '"') + "]");
but dont work and give me [ 'Art,Fitnnes' ];
i need to do a map before the split to create a new array or there are a simple way to do this