Ad
  • Custom User Avatar

    Yes, it has to scan each element in the array each time it's called. include? always returns a boolean value. if true do what's in the code block, in this case increase the count by 1.