Array Intersection

Find common elements that exist in both arrays.

Code

General
arr1 & arr2

Parameters

First array

Second array

Server

More Ruby Snippets