I have a problem:
data = { 'str_key' => ['string1', 'string2'] }
# @param [Hash] data - hash with String key
# @return [boolean]
def some_logic_test?(data)
data&.<what_to_do_with_string_key?>.include?('string1')
end
How can I use the safe navigation operator &.
for hash with string keys? Keys conversion will by [sic] obligatory?