Ruby - Arrays
Which operator in Ruby returns the common elements between two arrays?
[1, 2, 3] ? [2, 3, 4]Which operator in Ruby returns the common elements between two arrays?
[1, 2, 3] ? [2, 3, 4]& operator returns elements common to both arrays.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions