Search
Complete the JavaScript function to return an array containing the cumulative sum of the values in a given input array.
For example: