Typescript Combine Two Array Python Question