Typescript Sum Array Values By Definition Which Of The Following