lib/base/array.js
function removeDuplicates(arr) {
    if (isArray(arr)) {
        return reduce(arr, function (a, b) {
            if (indexOf(a, b) === -1) {
                return a.concat(b);
            } else {
                return a;
            }
        }, []);
    }
}
function removeDuplicates(arr) {
    if (isArray(arr)) {
        return reduce(arr, function (a, b) {
            if (indexOf(a, b) === -1) {
                return a.concat(b);
            } else {
                return a;
            }
        }, []);
    }
}
function removeDuplicates ( arr ) { if ( isArray ( arr ) ) { return reduce ( arr , function ( a , b ) { if ( indexOf ( a , b ) === - 1 ) { return a . concat ( b ) ; } else { return a ; } } , [ ] ) ; } }
Removes duplicates from an array

@example

comb.array.removeDuplicates([1,1,1]) => [1]
comb.array.removeDuplicates([1,2,3,2]) => [1,2,3]

@param {Aray} array the array of elements to remove duplicates from

@static
@memberOf comb.array
Removes duplicates from an array