How to check if a value exists in an array in Ruby August 28, 2022 by Tarik You’re looking for include?: >> ['Cat', 'Dog', 'Bird'].include? 'Dog' => true