Add up all the inputs. If none are present, returns 0.
An array of numeric inputs
The sum total
const y = SMath.sum([1, 2, 3]); // 6 Copy
const y = SMath.sum([1, 2, 3]); // 6
Add up all the inputs. If none are present, returns 0.