Typescript Sum All Elements In Array Matlab For Mac