K
Kenneth Eunjung
Hi is there a simple way to return true if at least one element of an
array matches at least one element of another array?
For example let's say I have @groups = '4,6'.split(',') and @allowed =
'1,4'.split(',')
I want these to be true because 4 is in both @groups and @allowed.
Thank you!
array matches at least one element of another array?
For example let's say I have @groups = '4,6'.split(',') and @allowed =
'1,4'.split(',')
I want these to be true because 4 is in both @groups and @allowed.
Thank you!