0

So, I have an array
['a', 42, 'b', 42, 'a']
I want to alert users to the fact that 42 and 'a' appear in it twice.
some_function(['a', 42, 'b', 42, 'a'])
should return
['a', 42]
Write some code to extract the duplicates from an array.
It should accept an array as input.
The array can ...