Neat Little Array Searcher Function

i just wrote this and thought others out there would like to have a function that finds an objects place in an array.

//BY: Dononvan Hubbard 11-7-07
//arrName is the arrays name, and item is what your looking for in the array
function searchArray(arrName:Array, item:*):* {
    //loop through the  array
    for (var s:int = 0; s < arrName.length; s++) {
        //see if the array items matches the item your looking for
        if (arrName[s] == item) {
            var arrValue = s;
            //return your items place in the array
            return arrValue;

hope this helps some of you guys :sc: