title: Reduce array of arrays of booleans to single array of booleans (Array<Array<boolean>> to Array<boolean>)
body: <p>I have an array containing a random number of arrays of the same length with booleans.</p>
  
  <pre><code>arrBefore = [arr1, arr2, ..., arrn];
  </code></pre>
  
  <p>I want to return a single array of booleans containing true if any of values for the index is true and false otherwise. </p>
  
  <pre><code>arrBefore = [[true, false, false], [false, false, false], [true, false, true], [true, false, true]];
  
  arrAfter = reduceMyArr(arrBefore);
  
  console.log(arrAfter);
  
  //[true, false, true]
  </code></pre>
  
  <p>I know how to do it with for loops. But I want to do it with map() and reduce() instead. I couldn't find a solution on stack. Any help would be greatly appreciated. </p>
  
  <p><strong>update 1</strong></p>
  
  <p>My example was poorly choosen since it led to some confusion in the awnsers. I want to compare the inner arrays indexes. So the result should be an array of the same lenght of the inner arrays. And arrAfter[i] should be true if arr1[i], arr2[i], ..., arrn[i] contains atleast 1 true and false otherwise.</p>
  
  <p><strong>update 2</strong></p>
  
  <p>Some more examples as requested in the comments.</p>
  
  <pre><code>arrBefore = [[true],[false],[true],[false]];
  arrAfter = [true];
  ---
  arrBefore = [[true, false],[false, false], [false, true], [false, false], [true, true]];
  arrAfter = [true, true];
  ---
  arrBefore = [[true, false, false, false], [true, true, false, false]];
  arrAfter = [true, true, false, false];
  ---
  arrBefore = [[true, true, false, false, false], [false, false, false, false, true]];
  arrAfter = [true, true, false, false, true];
  </code></pre>