DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
5+8 =
Submit