Reduce Function In Array Typescript Vs Javascript Examples With Source