Check if the value is in the Array

Hi guys!

Does anybody know, how can I check if the value is in the Array?

var myArray:Array = Array("firstElement", "secondElement", "thirdElement");
if( myArray.isInArray("firstElement")){
    trace("true");
} else {
    trace("false");
}