Flowdock
method

uniq_by

Importance_1
v4.0.2 - Show latest stable - 0 notes - Class: Array
uniq_by(&block) public

DEPRECATED: Use Array#uniq instead.

Returns a unique array based on the criteria in the block.

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