const sum = (...arr) => [...arr].reduce((acc, val) => acc + val, 0);