Answers for "ruby string include multiple values"

0

ruby include multiple values

You could take the intersection of two arrays, and see if it's not empty:

([2, 6, 13, 99, 27] & [2, 6]).any?
Posted by: Guest on February-02-2021

Browse Popular Code Answers by Language