lib/arrays.js
function (items, array, index) {
        
        // There might be some optimization to be made here.
        // Right now, I'm just going for a simple solution.
        
        if (   !(items instanceof Array)
            || !(array instanceof Array) )
            throw "IllegalArgumentException: items and array must both be Array objects.";
        
        var numRemoved = 0;
        for (var i = 0, len = items.length; i < len; i++) {
            if (Arrays.remove(items[i], array, index) >= 0)
                numRemoved++;
        }
        
        return numRemoved;
    }
function (items, array, index) {
        
        // There might be some optimization to be made here.
        // Right now, I'm just going for a simple solution.
        
        if (   !(items instanceof Array)
            || !(array instanceof Array) )
            throw "IllegalArgumentException: items and array must both be Array objects.";
        
        var numRemoved = 0;
        for (var i = 0, len = items.length; i < len; i++) {
            if (Arrays.remove(items[i], array, index) >= 0)
                numRemoved++;
        }
        
        return numRemoved;
    }
function ( items , array , index ) { // There might be some optimization to be made here.
 // Right now, I'm just going for a simple solution.
 if ( ! ( items instanceof Array ) || ! ( array instanceof Array ) ) throw "IllegalArgumentException: items and array must both be Array objects." ; var numRemoved = 0 ; for ( var i = 0 , len = items . length ; i < len ; i ++ ) { if ( Arrays . remove ( items [ i ] , array , index ) >= 0 ) numRemoved ++ ; } return numRemoved ; }
Removes a list of items from an Array.
@param items {Array} Items to be removed
@param array {Array} Array from which to remove the items.
@param index {Number or String} optional
@returns {Number} The number of successfully removed items.
Removes a list of items from an Array .