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

后端 未结 0 1675
清歌不尽
清歌不尽 2021-02-12 23:27

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

(Note: I mean the reduce() func

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