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