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