myArray = ["{url: '/delete', key: 71}", "{url: '/delete', key: 72}", "{url: '/delete', key: 73}", "{url: '/delete', key: 74}"]
I want to remove the " character that wrapped the object. Or escape from double quotes.
I have try this
myArray.replace(/"/g,"")
but it says:
Uncaught TypeError: myArray.replace is not a function
Anybody have the same experience? thank you