Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript string to array

var a = "['a', 'b', 'c']";
a = a.replace(/'/g, '"');
a = JSON.parse(a);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #string #array
ADD COMMENT
Topic
Name
2+2 =