let a='[1,2],[3,4]'
let b='[1,2],[3,4]'.replaceAll('],',']#') //'[1,2]#[3,4]'
let c='[1,2],[3,4]'.replaceAll('],',']#').split('#') //["[1,2]", "[3,4]"]
let d='[1,2],[3,4]'.replaceAll('],',']#').split('#').map(item => item.replaceAll('[','').replaceAll(']','').split(',') )