Lets say I have an array with these elements:
[
'whatever',
'something else',
'foobar'
]
I know I can iterate over the array and check for foobar using a regex for example. The question is, is there a shorter way of doing that?
Thanks?