If I have a value ‘Dog’ and an array [‘Cat’, ‘Dog’, ‘Bird’] How do I check this w/o looping through. Is there a simple way of checking if the value exists, nothing more.
include?: will work for us.
>> ['Cat', 'Dog', 'Bird'].include? 'Dog' => true