example/public/ueditor/third-party/SyntaxHighlighter/shCore.js
function indexOf(array, searchElement, fromIndex)
    {
        fromIndex = Math.max(fromIndex || 0, 0);

        for (var i = fromIndex; i < array.length; i++)
            if(array[i] == searchElement)
                return i;

        return -1;
    }
function indexOf(array, searchElement, fromIndex)
    {
        fromIndex = Math.max(fromIndex || 0, 0);

        for (var i = fromIndex; i < array.length; i++)
            if(array[i] == searchElement)
                return i;

        return -1;
    }
function indexOf ( array , searchElement , fromIndex ) { fromIndex = Math . max ( fromIndex || 0 , 0 ) ; for ( var i = fromIndex ; i < array . length ; i ++ ) if ( array [ i ] == searchElement ) return i ; return - 1 ; }
Finds an index of element in the array.
@ignore
@param {Object} searchElement
@param {Number} fromIndex
@return {Number} Returns index of element if found; -1 otherwise.
Finds an index of element in the array .