instance method uniq_by!

Ruby on Rails 3.0.20

Since v3.0.20 Last seen in v4.0.13

Available in: v3.0.20 v3.1.12 v3.2.22.5 v4.0.13

Signature

uniq_by!()

Same as uniq_by, but modifies self.

Source
# File activesupport/lib/active_support/core_ext/array/uniq_by.rb, line 14
  def uniq_by!
    replace(uniq_by{ |i| yield(i) })
  end

Defined in activesupport/lib/active_support/core_ext/array/uniq_by.rb line 14 · View on GitHub · Improve this page · Find usages on GitHub

Defined in Array

Type at least 2 characters to search.

↑↓ navigate · open · esc close