lib/base/array.js
function difference(arr1, arr2) {
    var ret = arr1, args = flatten(argsToArray(arguments, 1));
    if (isArray(arr1)) {
        ret = filter(arr1, function (a) {
            return indexOf(args, a) === -1;
        });
    }
    return ret;
}
function difference(arr1, arr2) {
    var ret = arr1, args = flatten(argsToArray(arguments, 1));
    if (isArray(arr1)) {
        ret = filter(arr1, function (a) {
            return indexOf(args, a) === -1;
        });
    }
    return ret;
}
function difference ( arr1 , arr2 ) { var ret = arr1 , args = flatten ( argsToArray ( arguments , 1 ) ) ; if ( isArray ( arr1 ) ) { ret = filter ( arr1 , function ( a ) { return indexOf ( args , a ) === - 1 ; } ) ; } return ret ; }
Finds the difference of the two arrays.

@example

comb.array.difference([1,2,3], [2,3]); //[1]
comb.array.difference(["a","b",3], [3]); //["a","b"]

@param {Array} arr1 the array we are subtracting from
@param {Array} arr2 the array we are subtracting from arr1
@return {*} the difference of the arrays.

@static
@memberOf comb.array
Finds the difference of the two arrays .