Typescript Sum All Numbers In Array Function