lib/util.js
function removeDoubles( arrInput ) {
    const
    arrOutput = [],
    map = {};
    arrInput.forEach( function forEachItem( itm ) {
        if ( itm in map ) return;
        map[ itm ] = 1;
        arrOutput.push( itm );
    } );
    return arrOutput;
}
function removeDoubles( arrInput ) {
    const
    arrOutput = [],
    map = {};
    arrInput.forEach( function forEachItem( itm ) {
        if ( itm in map ) return;
        map[ itm ] = 1;
        arrOutput.push( itm );
    } );
    return arrOutput;
}
function removeDoubles ( arrInput ) { const arrOutput = [ ] , map = { } ; arrInput . forEach ( function forEachItem ( itm ) { if ( itm in map ) return ; map [ itm ] = 1 ; arrOutput . push ( itm ) ; } ) ; return arrOutput ; }
Return a copy of an array after removing all doubles.
@param {array} arrInput array of any comparable object.
@returns {array} A copy of the input array without doubles.
Return a copy of an array after removing all doubles .