Big O Notation - Confused with some code

Is there any reason that you’re not using Array#inculde?

["milk", "juice", "tacos"].include? "milk"
=> true

["milk", "juice", "tacos"].include? "beer"
=> false