Flowdock
method

uniq_by

Importance_1
v3.0.0 - Show latest stable - 0 notes - Class: Array
uniq_by() public

Return an unique array based on the criteria given as a proc.

  [1, 2, 3, 4].uniq_by { |i| i.odd? }
  # => [1, 2]
Show source
Register or log in to add new notes.