Typescript Reduce Array Of Structures Examples