how does Typescript determine the type of the array.reduce() return value?

后端 未结 0 974
半阙折子戏
半阙折子戏 2021-02-12 23:52

How does Typescript (v4.0.2) decide what should be the return type of the array.reduce() function ?

(Note: I mean the reduce() func

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