Class: Array

Inherits:
Object show all
Defined in:
lib/transmission-rss/core_ext/Array.rb

Instance Method Summary collapse

Instance Method Details

#duplicatesObject



2
3
4
# File 'lib/transmission-rss/core_ext/Array.rb', line 2

def duplicates
  self.group_by { |e| e }.select { |k, v| v.size > 1 }.map(&:first)
end