Remove object from array

Was looking into when I asked, figured it wouldn’t hurt to ask if there was one already implemented.
I’ll post the example I found in case anyone else comes looking:

shuffleArray = function(array)
{
    var currIndex = array.length, tempValue, randIndex;
    
    while(0 !== currIndex)
    {
        randIndex = Math.floor(Math.random() * currIndex);
        currIndex -= 1;
        
        tempValue = array[currIndex];
        array[currIndex] = array[randIndex];
        array[randIndex] = tempValue;
    }
    
    return array;
};

EDIT: Actually this doesn’t seem to work… see new topic Function call freezes browser when debugging