My code is setup to flatten a multidimensional array, but I am getting an error message saying Cannot read property 'length' of undefined

前端 未结 0 647
余生分开走
余生分开走 2021-01-03 07:06

I am trying to flatten a multidimensional array in TypeScript. The array that will be returned should have the numbers in ascending order.

Given [[3, 2, 1],          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题