How to compare the data array. I have an array with three subarrays:
var arr = [ [10, 10, 10, 20, 60], [10, 10, 50, 10, 10], [20, 10, 30, 20, 10] ]; I need to collect one array, with the maximum values ββof these three arrays. The length of the arrays is always the same, if in one 5 values, then in the other two the same.
The output should be such an array: var arr = [20, 10, 50, 20, 60]
Π΄ΠΎΠ»ΠΆΠ΅Π½ ΠΏΠΎΠ»ΡΡΠΈΡΡΡ Π²ΠΎΡ ΡΠ°ΠΊΠΎΠΉ ΠΌΠ°ΡΡΠΈΠ²: var arr = [20, 10, 50, 20, 60]- how it fits into the concept:ΠΠ½Π΅ Π½ΡΠΆΠ½ΠΎ ΡΠΎΠ±ΡΠ°ΡΡ ΠΎΠ΄ΠΈΠ½ ΠΌΠ°ΡΡΠΈΠ², Ρ ΠΌΠ°ΠΊΡΠΈΠΌΠ°Π»ΡΠ½ΡΠΌΠΈ Π·Π½Π°ΡΠ΅Π½ΠΈΡΠΌΠΈ ΡΡΠΈΡ ΡΡΠ΅Ρ ΠΌΠ°ΡΡΠΈΠ²ΠΎΠ².? - Alexey Shimansky