There's no documentation for this item.
Source Code
# File action_view/helpers/prototype_helper.rb, line 1182 def grep(variable, pattern, &block) enumerate :grep, :variable => variable, :return => true, :method_args => [pattern], :yield_args => %w(value index), &block end
<code/>and<pre/>for code samples.