lib.js
function(mask) {
        var borders = ['border-top','border-right', 'border-bottom', 'border-left'];
        var res = {};
        for (var i = 0; i < 4; i++) {
            if (!(mask & bin(i))) res[borders[i]] = 'none';
        }
        return res;
    }
function(mask) {
        var borders = ['border-top','border-right', 'border-bottom', 'border-left'];
        var res = {};
        for (var i = 0; i < 4; i++) {
            if (!(mask & bin(i))) res[borders[i]] = 'none';
        }
        return res;
    }
function ( mask ) { var borders = [ 'border-top' , 'border-right' , 'border-bottom' , 'border-left' ] ; var res = { } ; for ( var i = 0 ; i < 4 ; i ++ ) { if ( ! ( mask & bin ( i ) ) ) res [ borders [ i ] ] = 'none' ; } return res ; }
Exclude borders with 'none-border

@param mask
@return {{}}
Exclude borders with none - border