How to convert the following dynamic array to an array of the following format

let data = [
     ["xx", "xxl"],
     [11, 12]
    //["",""]
]
**data  data1**

let data1 = [
    [
    "xx", 11
      ],
      [
    "xxl", 11
      ],
      [
    "xxl", 12
      ],
      [
    "xx", 12
      ],
]
Mar.21,2021
Menu