Let's say I have four arrays:
var arr1 = [117, 121, 18, 24];
var arr2 = [132, 19, 432, 23];
var arr3 = [32, 23, 137, 145];
var arr4 = [900, 332, 23, 19];
I need to create a new array from these, arr5, where key 1 is the highest number from key 1 of arr1, arr2, arr3, arr4, and the same for key 2, 3, etc. So I would have arr5 as:
[900, 332, 432, 145]
What would be the simplest way of accomplishing this?
Please no jQuery, just plain vanilla JS.