export function sum(values) { let sum = 0; values.forEach((element) => { sum += element; }); return sum; }