how to remove the square brackets from the array in javascript code example
Example: remove square brackets from string javascript
//Use this regular expression to match square brackets or single quotes:
/[\[\]']+/g
//Replace with the empty string.
"['abc','xyz']".replace(/[\[\]']+/g,'')