const sum = (...arr: Array<number>) => [...arr].reduce((acc, val) => acc + val, 0);
      
      Typescript language logo

      Calculate sum

      Codiga's TypeScript Recipes

      Calculates the sum of two or more numbers/arrays.

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.