1function sumArray(a, b) {
2 var c = [];
3 for (var i = 0; i < Math.max(a.length, b.length); i++) {
4 c.push((a[i] || 0) + (b[i] || 0));
5 }
6 return c;
7}
1function sumArray(a, b) {
2 var c = [];
3 for (var i = 0; i < Math.max(a.length, b.length); i++) {
4 c.push((a[i] || 0) + (b[i] || 0));
5 }
6 return c;
7}
8