Free MuleSoft CONNECT Keynote & Expo Pass Available!

Register now+
Nav

sum

sum(Array<Number>): Number

Given an array of numbers, it returns the result of adding of all of them.

Transform

        
     
1
2
3
4
%dw 2.0
output application/json
---
sum([1, 2, 3])
Output

        
     
1
6