How to call map function with array of multiple types in typescript

后端 未结 0 377
野性不改
野性不改 2021-01-07 05:03

I\'m developing a Typescript function which needs to iterate over an array of type Employee[] | Guest[]. The problem is that TypeScript is emitting the error <

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