acceptance/ui/features/support/env.rb
# Loops through the items in the array and returns the
# item that matches the given property or nil.
Loops through the items in the array and returns the
item that matches the given property or nil.
Loops through the items in the array and returns the item that matches the given property or nil .
def findArrayMatch(array, property, match)
    array.each do |item|
        return item if item[property] == match
    end
    return nil
end
def findArrayMatch ( array , property , match ) array . each do | item | return item if item [ property ] == match end return nil end
Loops through the items in the array and returns the
item that matches the given property or nil.
Loops through the items in the array and returns the item that matches the given property or nil .
array
property
match