I was referencing the function Cassie had in her demo - that would return a number. You never shared your function so I assumed it was similar to what Cassie showed. Now that you shared your function, yes, I see that it returns an Array. And the strategy I shared with you still applies:    function myFunction() { let heights = [10, 6]; let totalHeight = heights[0] + heights[1]; let snapValues = []; let prev = 0; snapValues = heights.map((height, i) => { l