You need to loop first array to find the inner arrays, and then loop all inner arrays one by one to get the sum and keep pushing it to new array after loop is complete for inner array's.
var array = [[1], [2, 1, 1], [3, 4]];
var sumArray = [];
array.forEach(function(e){
var sum = 0;
e.forEach(function(e1){
sum += e1;
});
sumArray.push(sum);
});
console.log(sumArray);