const result = myArray.reduce((accumulator, element) => accumulator + element); 
      Javascript language logo

      reduce array

      My JavaScript recipes

      reduce an array into a single value

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.