[Leetcode] JS 30 Array Reduce Transformation
Question 2626
for...of loop / reduce function
Question
Given an integer array nums, a reducer function fn, and an initial value init, return the final result obtained by executing the fn function on each element of the array, sequentially, passing in the return value from the calculation on the preceding