ShareCopy to ClipboardRawPreviewconst sum = (...arr: Array<number>) => [...arr].reduce((acc, val) => acc + val, 0); Calculate sum00gioyikCodiga's TypeScript RecipesCalculates the sum of two or more numbers/arrays.0 CommentsAdd CommentLog in to add a comment