rails – Finding intersections between multiple arrays February 1, 2023 by Tarik Use the & method of Array which is for set intersection. For example: > [1,2,3] & [2,3,4] & [0,2,6] => [2]