Find values in common between two arrays April 30, 2023 by Tarik You can use the set intersection method & for that: x = [1, 2, 4] y = [5, 2, 4] x & y # => [2, 4]