index.js
/**
 * merge objects and create a result.
 * #NOTICE: for performance reason, avoid using arguments..
 */
merge objects and create a result.
#NOTICE: for performance reason, avoid using arguments
merge objects and create a result . #NOTICE : for performance reason avoid using arguments
function merge(a, b, c, d, e, f, g) {
    var dest = Array.isArray(a) ? [] : {}; 
    if (g) throw Error('You pass too many args for merge method');
    try {
        [a, b, c, d, e, f]
            .filter(Boolean)
            .forEach(function(obj) {
                Object.keys(obj).forEach(function(k) {
                    dest[k] = obj[k];
                });
            });
    } catch (e) {
        return dest;
    }
    return dest;
}
function merge ( a , b , c , d , e , f , g ) { var dest = Array . isArray ( a ) ? [ ] : { } ; if ( g ) throw Error ( 'You pass too many args for merge method' ) ; try { [ a , b , c , d , e , f ] . filter ( Boolean ) . forEach ( function ( obj ) { Object . keys ( obj ) . forEach ( function ( k ) { dest [ k ] = obj [ k ] ; } ) ; } ) ; } catch ( e ) { return dest ; } return dest ; }
merge objects and create a result.
merge objects and create a result .
// the type of the object is determined by the first argument // in case any of them not object