const array = [1, 2, 3]; const result = array.reduce((accumulator, current) => accumulator + current, 0); // result === 1 + 2 + 3;