[ad_1]
You can use the first method:
a = [1, 2, 3]
b = [3, 2, 1]
a.first > b.first #=> false
1
[ad_2]
solved RAILS – HOW TO COMPARE VALUES BY ARRAY INDEX [closed]
[ad_1]
You can use the first method:
a = [1, 2, 3]
b = [3, 2, 1]
a.first > b.first #=> false
1
[ad_2]
solved RAILS – HOW TO COMPARE VALUES BY ARRAY INDEX [closed]