Answers for ""["value"]" to array js"

0

"["value"]" to array js

var getValue = '["1","2"]';
var obj = JSON.parse(getValue) //obj is now ["1", "2"]
Posted by: Guest on May-12-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language