function sumOfArraysInArray (arr) { const joinedArr = arr.reduce((acc, val) => acc.concat(val));
const filteredNumber = joinedArr.filter(function (el) { return typeof(el) === 'number'; });
return filteredNumber.reduce((acc, val) => acc + val, 0)
}