text.match(array) ?

text.match(array) ?

I have string and array:
text = "xxxxxxonexxxx"
array = ["one", "two"]

I need
if (text.match(array)) {...}


But it does not working. How can i check this?