I have a string which is a list of ints, and I need to parse it into a list of those ints. In other words, how to convert "[2017,7,18,9,0]"
to [2017,7,18,9,0]
?
more info
When i console.log(typeof [2017,7,18,9,0], [2017,7,18,9,0] )
, I get: string [2017,7,18,9,0]
. I need to convert it into a list such that doing console.log()
, i get: object Array [ 2017, 7, 18, 9, 0 ]
.
Thanks in advance for any help!