Flowdock
method

uniq_by

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

Returns 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.