Array Reduce Function Typescript Download