let arr = [] for (let i = 0; i < menuList.length; i++) { var arr2 = [] for (let j = 0; j < menuList[i].chileMenuList.length; j++) { arr2[j] = menuList[i].chileMenuList[j].permission } arr[i] = arr2 }