Finding Any Value in Array (not indexOf)

Hi everyone,
I am wondering if Flash has a built in way of finding if a value in an array exists. IndexOf only works with string values, but I couldn’t find any function that tries to find a value of any data type in an array.

If there isn’t one, I will just end up using this:

contains = function (array, input) {
for (i=0; i<array.length; i++) {
if (array* == input) {
return 1;
}
}
};

I am trying not to use my own functions for things that Flash already has built-in, so I just want to double check with you all in case I missed something :slight_smile:

Thanks!
Kirupa :beam: