Why does the Array have no forEach method when recursing, in Typescript

后端 未结 0 1854
面向向阳花
面向向阳花 2021-01-22 11:10
function addUserType(routers: { routes?: any[] }[], type: string): any[] {
  routers.forEach((router) => {
    router[\'userTyp         


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